Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit a443850
Showing
6 changed files
with
83 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*.pyc | ||
settings.json | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
## Translate | ||
Allow to translate phrases into other languages | ||
|
||
## Description | ||
Allow to translate phrases into other languagessupported languages: | ||
|
||
english, spanish, french, italian, portuguese, dutch, german, swedish, hungarian, polish, norwegian, danish, romanian, slovak, catalan, chinese, japanese, korean, greek, vietnamese, turkish, finnish and arabic | ||
|
||
## Examples | ||
- "How use translate" | ||
- "Translate to spanish good night" | ||
- "Translate good morning my dear friends and happy new year to spanish" | ||
- "Repeat" | ||
- "Do you speak other language" | ||
|
||
|
||
## Credits | ||
Juan Carlos Argueta | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
from adapt.intent import IntentBuilder | ||
from mycroft import MycroftSkill, intent_file_handler | ||
|
||
|
||
class Translate(MycroftSkill): | ||
def __init__(self): | ||
MycroftSkill.__init__(self) | ||
|
||
@intent_file_handler('translate.intent') | ||
def handle_translate(self, message): | ||
self.speak_dialog('translate') | ||
|
||
|
||
def create_skill(): | ||
return Translate() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Translate | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{ | ||
"name": "Translate", | ||
"skillMetadata": { | ||
"sections": [ | ||
{ | ||
"name": "Options << Name of section", | ||
"fields": [ | ||
{ | ||
"name": "internal_python_variable_name", | ||
"type": "text", | ||
"label": "Setting Friendly Display Name", | ||
"value": "", | ||
"placeholder": "demo prompt in the input box" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "Login << Name of another section", | ||
"fields": [ | ||
{ | ||
"type": "label", | ||
"label": "Just a little bit of extra info for the user to understand following settings" | ||
}, | ||
{ | ||
"name": "username", | ||
"type": "text", | ||
"label": "Username", | ||
"value": "" | ||
}, | ||
{ | ||
"name": "password", | ||
"type": "password", | ||
"label": "Password", | ||
"value": "" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Translate | ||
|