Base internationalisation with Xcode 10

前端 未结 1 1153
野趣味
野趣味 2021-02-13 02:31

My project declares two languages: English as development and French as additional. Also it has Use Base Internationalization ticked.

When I localise a Stri

1条回答
  •  误落风尘
    2021-02-13 03:25

    This happens because iOS doesn't only looks for the current system language. It looks for the first supported language in the list of preferred languages.

    But when you choose language in system preferences, iOS automatically adds this language to the list of preferred languages (Settings -- General -- Language & Region -- "Preferred language order" section).

    Thus, when you change language to unsupported language, the app selected the second language in the "Preferred language order" list.

    So, the "Base.lproj" file doesn't work.

    Perhaps for this reason, Apple removed "Base.lproj" from Xcode 10.

    0 讨论(0)
提交回复
热议问题