Is it possible to access the App Bundle's en.lproj?

前端 未结 1 593
说谎
说谎 2021-01-07 01:03

I would like to be able to change the language files within the language directories. For example let say I have a japanese language update, then I can have the app grab a l

相关标签:
1条回答
  • 2021-01-07 01:52

    The entire app bundle is read-only for the app. You can not add or modify files in there.

    You could store resources e.g. in "Library/Application Support" and load them from there. You would have to replace e.g. NSLocalizedString by NSLocalizedStringFromTableInBundle, or specify your resource bundle in initWithNibName:bundle:, so that might get complicated.

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