Localization of strings in static lib

前端 未结 3 1184
生来不讨喜
生来不讨喜 2021-02-02 02:12

I have a project that uses a static library (SL). In that SL, there are a couple of strings I\'d like to localize and the project includes all of the localization files. The loc

3条回答
  •  长发绾君心
    2021-02-02 02:42

    Putting files with the same name intro one project never works, because in the resulting app they end up all in the same location. (Xcode doesn't preserve your directory structure.)

    But you can put part of your localization into Localizable2.strings and then use:

    NSLocalizedStringFromTable(@"key", @"Localizable2", @"")

提交回复
热议问题