Best Practice for implementing

Hi, my apps are build the way, that it always should take the localization based on the system language. I had/have the issue, that sometimes it falls back to english. I assume, that the configured user language isn't fully localized. you can see that especially when using date and time formats and calendars. how do I prevent that? or: how is the correct way to implement localization in an app? thanks in advance

Answered by Frameworks Engineer in 892787022

There's information about project localization in Xcode here that might be useful for you: https://developer.apple.com/documentation/xcode/localization

Can you please provide some more information about the system languages in question and the localizations your app supports, including which languages are working for you and which are falling back to English?

The OS examines the user's preferences (in Settings) and the localizations that you declare in your app, falling back to English, for example, when there is no suitable match. Date and time formats follow what the user chose in Settings. Details will depend on the specific set of languages that you support and the users settings.

I was able to reproduce with these installed

  1. Germany Germany, German Switzerland, English UK, English US
  2. German Germany, Polish, English US

We do support date and time formatting for those languages and regions.

Are there any languages for which date and time formatting is not falling back to English for you?

Can you please give an example of your code for requesting a date to be formatted?

There's information about project localization in Xcode here that might be useful for you: https://developer.apple.com/documentation/xcode/localization

Best Practice for implementing
 
 
Q