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

Fix Cannot read property 'getLanguages' of undefined #153

Merged
merged 1 commit into from
Dec 21, 2017

Conversation

giantss
Copy link
Contributor

@giantss giantss commented Dec 12, 2017

Fix Cannot read property 'getLanguages' of undefined

Fix  Cannot read property 'getLanguages' of undefined
@LcTwisk
Copy link

LcTwisk commented Dec 12, 2017

This doesn’t make sense. Just linking again manually fixed the problem for me.

@giantss
Copy link
Contributor Author

giantss commented Dec 12, 2017

@LcTwisk The latest, some developers in accordance with the operation of the document installation is completed, run the project encountered this problem, this is not a coincidence?

@compojoom
Copy link

I get this with jest tests. Using this pull request fixed the issue for me.

@zoontek
Copy link
Collaborator

zoontek commented Dec 21, 2017

Thanks! Merged

@zoontek zoontek merged commit 07ce269 into AlexanderZaytsev:master Dec 21, 2017
@leethree
Copy link

I'm a bit confused. why not just use RNI18n.languages instead of RNI18n.getLanguages()? What's the difference between these two?

@zoontek
Copy link
Collaborator

zoontek commented Dec 22, 2017

@leethree .languages is a constant, initialized at the app boot. getLanguages() allow getting language at the exact instant the method is fired

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

Successfully merging this pull request may close these issues.

5 participants