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

React Native Android translate not working #352

Open
sbalcin opened this issue Dec 28, 2023 · 4 comments
Open

React Native Android translate not working #352

sbalcin opened this issue Dec 28, 2023 · 4 comments

Comments

@sbalcin
Copy link

sbalcin commented Dec 28, 2023

Hi,
if i use useTranslation hook on Android, it's working fine but in class components which I use like i18n.t('xx'), in that case translations are not working, regardless of importing i18n from 'i18next' lib or from configuration class.
Btw, in IOS it's working fine for both cases.
Is there any comment, what could be the issue here ?

@adrai
Copy link
Contributor

adrai commented Dec 28, 2023

This is strange... never heard about that. Is there any error in the developer console?
Can you reproduce it also with i18next-http-backend instead of i18next-locize-backend?

@sbalcin
Copy link
Author

sbalcin commented Dec 28, 2023

I didn't try with i18next-http-backend, I have no Http API for that though and there's no log on neither console nor logcat about it. But you can easily reproduce it if you have any sample app on react native

@adrai
Copy link
Contributor

adrai commented Dec 28, 2023

Unfortunately, I'm not able to reproduce it, I've no mobile android environment setup here...
If you're using i18next-locize-backend, you have for sure a http api...
Can you share some code?

@adrai
Copy link
Contributor

adrai commented Dec 28, 2023

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