Search code examples
androidioslocalizationlocalizable.strings

Adding strings localization files from a server


We are building an application with dynamic data that we wish to localize. We know how to localize strings in iOS and Android but in this case the data will be downloaded dynamically from the server so we will need to download the localization files dynamically.

Usually we store the strings files inside language folders. how can we do that when the file is coming from the server?


Solution

  • how can we do that when the file is coming from the server?

    You can't because the app bundle is not writable on iOS devices.

    There is, however, NSLocalizedStringFromTableInBundle(), which lets you specify a different bundle from which you can load the .strings file. I haven't tried but I suppose this bundle can also reside in your app's Documents or Library folder.