Skip to content

Add support for new languages #1

@tonysurma

Description

@tonysurma

(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:

  1. 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.

  2. In RootDialog.cs and SetLanguage.cs you will need to initialize a new cultureInfo (for example, for Arabic use "ar-SA").

  3. Modify the logic in SetLanguage.cs for StartAsync and onLanguageSelect to use the new language.

  4. Modify the logic in RootDialog.cs for DetectAndSaveUserLanguageAsync to use the new Language

  5. Add support for the new language in RootDialog.cs for SendWelcomeMessage to support the new language

Language Support:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions