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

[Android] Calling setLanguage updates texts on Emulator but not on Real Device #109

Open
gitChaoslord opened this issue Nov 27, 2024 · 0 comments

Comments

@gitChaoslord
Copy link

Hello,
I've encountered a translation related problem that appears only on a physical Android device and would like some help.

Description

I am calling the setLanguage method of ZohoSalesIQ like this, in one of my Screens

import { ZohoSalesIQ } from 'react-native-zohosalesiq-mobilisten'

. . .

 const { i18n } = useTranslation()

  useEffect(() => {
      ZohoSalesIQ.setLanguage(i18n.language)
  }, [i18n.language])

Afterwards, I invoke IsChatEnabled and openChat methods to launch SalesIQ chat.

In IOS everything works flawlessly, changing the language and re-opening the chat shows the texts translated to the new language.
In Android, everything works fine on the Emulator but once I launch it on a physical device, only the english texts are displayed regardless of language selected.

Note: I use the provided default strings and no custom strings as described here

Any help is welcome,
Thanks in advance!

Environment

React-native: 0.74.5
react-native-zohosalesiq-mobilisten: 10.0.3
Expo: no
Node: 18
Emulator Android Version: 13 (API 33), 14 (API 34), 15 (API 35)
Physical Android Version: 13
Locale codes: ar (arabic), de (german), fr (french), en (english - default), el (greek), it (italian), zh (chinese)

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

1 participant