Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jcasoft committed Jun 1, 2018
0 parents commit a443850
Show file tree
Hide file tree
Showing 6 changed files with 83 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
@@ -0,0 +1,3 @@
*.pyc
settings.json

20 changes: 20 additions & 0 deletions README.md
@@ -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


16 changes: 16 additions & 0 deletions __init__.py
@@ -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()

2 changes: 2 additions & 0 deletions dialog/en-us/translate.dialog
@@ -0,0 +1,2 @@
Translate

40 changes: 40 additions & 0 deletions settingsmeta.json
@@ -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": ""
}
]
}
]
}
}
2 changes: 2 additions & 0 deletions vocab/en-us/translate.intent
@@ -0,0 +1,2 @@
Translate

0 comments on commit a443850

Please sign in to comment.