Skip to content

Fallback to same language, but different dialect #255

Description

@cmspray

Is your feature request related to a problem? Please describe.
Sometimes we have languages translated, like fr_FR, however, the user has the preferred language as fr_CA. In this case, English is returned as that's the only packaged resources with the app.

Describe the solution you'd like
Add a config that enables strings to fetch any "sister" dialects that are translated. The way Android does it now is first it searches for preferred locale, if none are present, look for just the language code, and if that's not present, look for "children" of the language code for translations.

Describe alternatives you've considered
Packaging the translated strings.xml files with our app, but this increases our apk size, and also, removes the ability for us to translate in real time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions