Localize iOS 14 dynamic widget configuration

前端 未结 2 671
-上瘾入骨i
-上瘾入骨i 2021-01-21 04:03

I am trying to load different configuration for the widgets depending on the app language, but when I use something like:

Locale.preferredLanguages
Bundle.main.pr         


        
2条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-21 05:06

    You get EN only, because localization in description and widget names is based on device language. If you would try to set device language to a different one, localization should work. As for now, it is not possible to use in-app language on widget description and name localization.

提交回复
热议问题