How to update localizable.strings from application by code?

I want to be able to update localized strings by code from an application. Actually, I want to make changes to the localization on the server, and then let the iPhone application retrieve the updated localization strings from the server, and then save them in the localizable.strings file.

+3
source share
3 answers

You can not! These files are part of the package and cannot be updated. You will have to independently configure the entire translation structure (which is not so much) and implement caching using either basic data or serialized dictionaries (one for each language that I assume).

+3

Localizable.strings , iOS. , , Localizable.strings NSLocalizedStringFromTableInBundle(). ( , .)

+1

(Get Localization), .strings API. iPhone, . , .

0

Source: https://habr.com/ru/post/1780233/


All Articles