locize / i18next-locize-backend

A simple i18next backend for locize.com which can be used in Node.js, in the browser and for Deno.
MIT License
70 stars 22 forks source link

React Native Android translate not working #352

Open sbalcin opened 10 months ago

sbalcin commented 10 months ago

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 commented 10 months ago

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 commented 10 months ago

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 commented 10 months ago

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 commented 10 months ago

Can you exclude this type of issues? https://github.com/i18next/i18next/issues/1729 https://github.com/i18next/i18next/issues/1749

And you may also want to have a look at: https://docs.locize.com/more/general-questions/why-is-there-such-a-high-download-amount#youve-integrated-the-locize-cdn-directly-in-to-your-mobile-app