From fdb85a7aa87f8401698532ef75c4cca2679c5b5b Mon Sep 17 00:00:00 2001 From: Camden Foucht Date: Tue, 30 Aug 2022 08:24:19 -0700 Subject: [PATCH] feat(i8n): add ar-SA model --- lambda/custom/languageStrings.js | 11 +++++++++ models/ar-SA.json | 41 ++++++++++++++++++++++++++++++++ skill.json | 11 +++++++++ 3 files changed, 63 insertions(+) create mode 100644 models/ar-SA.json diff --git a/lambda/custom/languageStrings.js b/lambda/custom/languageStrings.js index 431ad7b..db4f1e0 100644 --- a/lambda/custom/languageStrings.js +++ b/lambda/custom/languageStrings.js @@ -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?', diff --git a/models/ar-SA.json b/models/ar-SA.json new file mode 100644 index 0000000..08626e7 --- /dev/null +++ b/models/ar-SA.json @@ -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": [] + } + } +} \ No newline at end of file diff --git a/skill.json b/skill.json index de234ae..e49d867 100644 --- a/skill.json +++ b/skill.json @@ -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",