crisp-im / crisp-sdk-ios

:package: Crisp iOS SDK, add a chat in any iOS app and communicate with your users.
https://docs.crisp.chat/guides/chatbox-sdks/ios-sdk/
Other
44 stars 19 forks source link

Problems with Arabic Language iOS SDK #54

Closed iTarek closed 1 year ago

iTarek commented 3 years ago

Hello My App works on Arabic no matter the device local, I did not find a way to set the Crisp SDK local, tried CrispSDK.locale = NSLocale(localeIdentifier: "ar") as Locale But it's not working

If I changed the device language to Arabic, the Crisp SDK detect the device local language and works in Arabic but there are few bugs...

The 'Starting Chat...' message always in English IMG_2063

There is a problem with the close button overlap the header text, also the header text not on the correct place it's far on the right without margin like the other LTR languages. IMG_46A275110549-1 Also there is words on English like Tap to set your email

And if you click on the arrow near the set your email, the email field go out of the screen IMG_9DD2CBBA0243-1

Also when long press on a message, the text is not localized, And what is the 'system' name near the moderator icon? Also notice that the date is wrong IMG_992AF5C9D912-1

There is more bugs, but the most important thing is be able to set the Crisp SDK language no matter the device language.

Thank you

baptistejamin commented 3 years ago

Is this React Native?

iTarek commented 3 years ago

Is this React Native?

No this is native iOS using Swift

baptistejamin commented 3 years ago

Can you please send us a screen recording showing the issues?

iTarek commented 3 years ago

Can you please send us a screen recording showing the issues?

No problem I will do that, Just it's so important to have a way to change the Crisp SDK language away from user device language, is there a way to do that?

baptistejamin commented 3 years ago

I would need to verify this with the tech team and show the other bugs reported at the same time once screen recording is sent.

iTarek commented 3 years ago

Here you are a Video for most of the bugs when using Arabic, but I had to change the all device language to Arabic to use the SDK in Arabic, as I said you should have a way to change the SDK language.

https://www.dropbox.com/s/riafpt6jidvo6cd/RPReplay_Final1628719091.MP4?dl=0

Thank you for your help and I wish if you can solve this problem soon and we will recommend your service to all Arabic developer community.

I also can help for free to bring the Contact Form in Arabic, Just send the localize strings in English and I will translate it to Arabic, it's so Important to have Contact From in Arabic to be able use unified inbox in the best way.

baptistejamin commented 3 years ago

Thank you for all this. We will get back to you with updates asap.

iTarek commented 3 years ago

I know that you get header background from the backend also get the default welcome message, why not get the language from the backend too?

iTarek commented 3 years ago

Can we have update soon so I can include Crisp with our next update

iTarek commented 3 years ago

Any update?

eliottvincent commented 3 years ago

Not yet! We'll get back to you once we have an update.

abdulazizSi commented 3 years ago

I am waiting for an update as well 🤩

EssamSoft commented 1 year ago

@baptistejamin I have same problem and it's very important for us, please solve this bug ASAP

Thank you

baptistejamin commented 1 year ago

Hi, our agents are offline at the moment. Please leave a message and we will get back to you as soon as possible.

nesium commented 1 year ago

Hi everyone,

It’s been a while since this issue was reported, and we’ve launched a new major version of the Crisp SDK since then. The updates might have resolved the issue you encountered.

We’d appreciate it if you test the latest version to see if the issue persists. Feel free to reopen this issue with more details if needed.

Thanks for your support!

iTarek commented 1 year ago

After making 'locale' is deprecated: locale is no longer available CrispSDK.locale = NSLocale(localeIdentifier: "ar") as Locale

is there anyway to force the CrispSDK to use a language?