iPhone: NSLocalizedString reading from English .strings file even when another lang is set

后端 未结 5 1731
一个人的身影
一个人的身影 2021-01-06 07:53

I have an app that has some non-US Localizable.strings files. They appear in the project as I expect them to: there\'s a Localizable.strings object, and sub objects for \"en

5条回答
  •  失恋的感觉
    2021-01-06 08:16

    This happens (apparently) when there is a Localizable.strings file in the root of the project in addition to in the individual .lproj directories. The app seems to always prefer that if it's present. The fact that it was there was likely an artifact of mucking around trying to get the localizations working in the project.

    I'm leaving this question here in case others run into this issue.

提交回复
热议问题