-
Notifications
You must be signed in to change notification settings - Fork 3
Description
(originally created by @toolboc & @KSLHacks)
EmergencyServicesBot currently supports the top 3 spoken languages worldwide (Chinese, English, and Spanish). We would like to expand our impact to more individuals by adding more language support for example Arabic (the 4th most spoken language).
To begin, you will need to familiarize with how the current languages are utilized in the codebase. We key off of available languages in 5 distinct areas:
-
The Resources folder, which drives client-side menu translations. Naming is important and will need to conform to the naming convention (i.e. for Arabic you would use Resources.ar-SA.resx for more examples see: www.csharp-examples.net/culture-names/) and supply valid translations similar to the existing .resx files.
-
In RootDialog.cs and SetLanguage.cs you will need to initialize a new cultureInfo (for example, for Arabic use "ar-SA").
-
Modify the logic in SetLanguage.cs for StartAsync and onLanguageSelect to use the new language.
-
Modify the logic in RootDialog.cs for DetectAndSaveUserLanguageAsync to use the new Language
-
Add support for the new language in RootDialog.cs for SendWelcomeMessage to support the new language
Language Support: