Internationalization in Lock v2 for iOS
By default, Lock v2 for iOS displays all text in English. If you wish to display text in another language, or you wish to alter the text values for your application, you may provide a
Lock.strings file and define values to be used for the various text items that Lock might display.
More information about how to handle languages can be found in the official Apple documentation on Internationalization and Localization
Lock String Values
For a full list of the terms used by Lock, see the base Lock.strings file in the Lock.swift repository.
Providing alternative English strings
If you want to change some or all of the existing terms, you can do this by downloading and adding the Lock.strings file to your project.
Select the Lock.strings file and in the
File inspector click on
Now lets take a couple of terms in Lock.strings and update them with alternative text:
Supporting other languages
To add another language you first of all need to add the new language under
Add the new language and ensure that Lock.strings is selected
You will notice under Lock.strings a new file has been created for your specified language, based upon the Reference Language selection.
Now you are ready to translate to your desired language.
Some terms use parameters and it's important to note their placement in your translation. In particular multiple parameter terms such as: