43
Views
8
Comments
[Multilingual Component] Native calendar (months names) not being translated
Question
Forge component by OutSystems R&D
18
Published on 20 May 2020

Hello,
First of all, I don't know if this issue is directly related to the plugin or cordova configs, but I will report here in the hope of having some help.

I have a mobile app that is using this plugin in order to be available for 4 different languages and everything is working correctly, except for a frustrating situation that I can't find a way to solve and I explain:

  • I have an iOS device with the language and region configured for Portuguese (Portugal).
  • The User of my app has the account set to French and all content appears correctly in French.
  • When the user clicks on a "date" input it opens the native calendar but the month names appear in English
  • If I access the App via a browser and click on the same input, the month names appear in Portuguese, the device's language.

This problem only happens on iOS and I also tested with the "Multilingual To Do" app and got the same results.

What property can iOS inputs be looking at to define the language that appears in the Calendar? And how can that property overwrite the language of the device itself?


All help is welcome!


Thank you all

Rank: #83

Hi Daniel,

Yes, the question is directly not related to the plugin itself, but you did a god approach via posting it to the relevant channel.
Coming to the Native Calendar... it is no way related to the plugin or the language of your app.

While exploring the same I found this:
- If the calendar Outsystems mobile uses is Pikaday.. Like they mention for Web cleary than you can try setting up some AdvacneFormats for the same.

https://success.outsystems.com/Documentation/11/Developing_an_Application/Design_UI/Patterns/Using_Mobile_and_Reactive_Patterns/Date_Picker

- https://github.com/Pikaday/Pikaday

- https://stackoverflow.com/questions/51756403/pikaday-i18n-still-showing-names-of-the-days-and-months-in-english
- https://www.outsystems.com/forums/discussion/36932/calendar-set-to-local-language/

I am not sure whether Pikaday is used with Mobile .. but confirmed that OS used pikaDay for web as well & the StackOverflow post will guide you to how setup it via AdvanceFormat for the diff language.

Hope it helps,
Assif


Rank: #30429

Hi Daniel,

I am having the same problem, did you found a solution for this?


Thanks.