Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(i8n): add ar-SA model #76

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions lambda/custom/languageStrings.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,17 @@
* */

module.exports = {
ar: {
translation: {
WELCOME_MSG: 'مرحبا ، يمكنك أن تقول مرحبا أو مساعدة. التي تريد أن تجرب',
HELLO_MSG: 'مرحبا بالعالم',
HELP_MSG: 'يمكنك أن تقول مرحبا لي! كيف يمكنني المساعدة?',
GOODBYE_MSG: 'إلى اللقاء',
REFLECTOR_MSG: '{{intentName}} أنت فقط أثار',
FALLBACK_MSG: 'آسف ، أنا لا أعرف عن ذلك. يرجى المحاولة مرة أخرى.',
ERROR_MSG: 'آسف ، واجهت مشكلة في فعل ما طلبته. يرجى المحاولة مرة أخرى.'
}
},
en: {
translation: {
WELCOME_MSG: 'Welcome, you can say Hello or Help. Which would you like to try?',
Expand Down
41 changes: 41 additions & 0 deletions models/ar-SA.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"interactionModel": {
"languageModel": {
"invocationName": "مرحبا بالعالم",
"intents": [
{
"name": "AMAZON.CancelIntent",
"samples": []
},
{
"name": "AMAZON.HelpIntent",
"samples": []
},
{
"name": "AMAZON.StopIntent",
"samples": []
},
{
"name": "HelloWorldIntent",
"slots": [],
"samples": [
"أهلاً",
"كيف حالك",
"قل مرحبا العالم",
"مرحبًا",
"قل مرحبا العالم"
]
},
{
"name": "AMAZON.NavigateHomeIntent",
"samples": []
},
{
"name": "AMAZON.FallbackIntent",
"samples": []
}
],
"types": []
}
}
}
11 changes: 11 additions & 0 deletions skill.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@
"manifest": {
"publishingInformation": {
"locales": {
"ar-SA": {
"name": "مرحبا بالعالم",
"summary": "Sample Short Description",
"description": "Sample Full Description",
"examplePhrases": [
"مرحبا بالعالم Alexa",
"أهلاً",
"مساعدة"
],
"keywords": []
},
"en-US": {
"name": "Hello World",
"summary": "Sample Short Description",
Expand Down