taskrabbit / react-native-zendesk-chat

React Native Wrapper around Zendesk Chat v2
MIT License
130 stars 128 forks source link

support localization #118

Open OmranElmasry opened 3 years ago

OmranElmasry commented 3 years ago

i am using the chat widget, check the screenshot below:

Screen Shot 2021-06-13 at 1 37 52 PM

how can i localize the text in this screen?

fbartho commented 3 years ago

Hey @OmranElmasry! This is a question you should ask of Zendesk customer support! There may already be documentation from them on how to localize your setup!

I’m 90% sure you can use this library with a localized Zendesk, and everything should work fine. (This library mostly doesn’t control any strings as those all come from Zendesk)

OmranElmasry commented 3 years ago

I don't mean the chatbot, i meant the button names and list options etc

fbartho commented 3 years ago

The only button whose name is defined by this library is the “Close” button, and you can provide an override value for that string in the startChat call. It should be documented in the JSDoc, or elsewhere. Let me know if you need me to dig up a link!

Everything else is localized via Zendesk backend or library, that’s why I recommended you read their docs or reach out to their customer support!

fbartho commented 3 years ago

https://github.com/taskrabbit/react-native-zendesk-chat/blob/main/RNZendeskChat.d.ts#L70-L75

mostafaspace commented 2 years ago

Chat can be localized using these strings: https://developer.zendesk.com/documentation/classic-web-widget-sdks/unified-sdk/android/localize_text/ https://developer.zendesk.com/documentation/classic-web-widget-sdks/unified-sdk/ios/localize_text/

@fbartho The issue is: All strings under "Unified SDK" only reflecting as 'en' text on app, only the ones under "Chat" that can reflect as localized. I think this is related to how this package created.