-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add support for new languages #1
Comments
Hi @tonysurma I can help with Arabic :) |
@a-elnajjar , we could definitely use Arabic support if you can help out. Feel free to create a new issue to file a PR against. I would be happy to help if you have any questions. |
@toolboc I have created a new issue and start adding logic to use the Arabic translation. I have one |
Hello, i can help with french |
@a-elnajjar , which areas of the Quickstart are you having issues with? |
@pada57 , we would be happy to accept a PR if you area able to assist with French translation. |
* Update Microsoft.Net.Compilers * Refactor rootdialog to use common constants and one method to get CI * Add french culture and refactor constants * Refactor setLanguage and add french * Change assembly name * Added french resource * Change french display name * Add french welcome message and choices * Set language to french * Revert to use Authorization header for QnA client * Add null operator in case null response
(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:
The text was updated successfully, but these errors were encountered: