MoathOthman / MOLH

Localization helper for iOS apps mainly focusing on the LTR/RTL issue
MIT License
117 stars 36 forks source link

numbers language does not change after localization till restarting the app #72

Open khaledbohout2 opened 2 years ago

MoathOthman commented 2 years ago

@khaledbohout2 you mean number formatting ? I don't believe MOLH handles that. are you using the nsformatter and setting locale to currentLocale ?, to handle that wherever you do set the locale check the current language and set it accordingly

khaledbohout2 commented 2 years ago

@MoathOthman any string on the containing numbers, iOS converts these numbers to local language so when you force localize using MOLH while opening the app numbers do not change until restarting app, nsformatter does not solve that.

MoathOthman commented 2 years ago

@khaledbohout2 what are you doing currently to format the numbers ? can u give some code snippet

khaledbohout2 commented 2 years ago

@MoathOthman i am not doing any formatting you know for example date returned from backend 09/08/2022 it appears like that in english but in arabic ٩/٨/٢٠٢٢ without doing any thing, iOS does this, when force localizing to different language while opening the app using MOLH the numbers does not change