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

default language is always en #98

Closed
kindslayer opened this issue Nov 15, 2019 · 3 comments
Closed

default language is always en #98

kindslayer opened this issue Nov 15, 2019 · 3 comments

Comments

@kindslayer
Copy link

Is it impossible to set callback language or default language?

@stefalda
Copy link
Owner

The fallback language or default is the first defined language...

@kindslayer
Copy link
Author

This is my string file but default language is english ...

// ES6 module syntax
import LocalizedStrings from 'react-localization';

let strings = new LocalizedStrings({
 fa:{
   Hello:"سلام",
 },
 en: {
   Hello:"Hello man",
 }
})

@stefalda
Copy link
Owner

Could be that your browser is detected as english or the language is not fa?

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

2 participants