Skip to content

Issue with findBestAvailableLanguage #57

Closed
@vikrantnegi

Description

@vikrantnegi

Bug

findBestAvailableLanguage is not falling to fallback language i.e. English when I change the language to Spanish.

Steps To Reproduce

Just like the example app, I'm using three languages English, French, and Arabic.

  1. When I change the language to French it shows the French Text
  2. Now, when I change the language to Spanish which is not supported and should fallback to English as a fallback, it remains French.

Environment info

"i18n-js": "^3.3.0",
"lodash.memoize": "^4.1.2",
"react": "16.8.3",
"react-native": "0.59.9",
"react-native-localize": "^1.1.3"

Describe what you expected to happen:

  1. When I change the language to Spanish it should fallback to English language

Reproducible sample code

Find the repo here

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions