Skip to content
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

Missing string when no locale in the resources #123

Open
a-katsarov opened this issue Apr 23, 2018 · 0 comments
Open

Missing string when no locale in the resources #123

a-katsarov opened this issue Apr 23, 2018 · 0 comments

Comments

@a-katsarov
Copy link

Description

When trying to translate a string of a locale that is missing in the resources it returns no string even if useKeyIfMissing is used. For example, if we set the language to bg and the resources contains {"en":{},"fr":{}} it returns no string.

Expected outcome

The translation key if useKeyIfMissing is set to true

Actual outcome

undefined/no string

Steps to reproduce

  1. Check your resources for supported locales
  2. Set the language to some locale that is not in the resources
  3. The result will be undefined

Browsers Affected

All

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant