-
-
Notifications
You must be signed in to change notification settings - Fork 419
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
__n() throws error if setLocale not called, despite defaultLocale #429
Comments
Maybe you can add some code to reproduce your setup? |
I don't have a project setup, but I was able to reproduce the issue with
This can be fixed by doing
edit: I missed this fix I had locally. seems that you must set the locale before using __n as well.
|
Adding
|
Works for me without package.json
index.js
Outputs*personal information redacted
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
HI,
if you call __n() without setLocale beforehand it will throw:
Even if you define a default locale with:
There should be a fallback that if no targetLocale is found the defaultLocale should be used.
The text was updated successfully, but these errors were encountered: