Need help?

Please type a word or phrase into the box below to search all our FAQ and support articles.

iOS: Translation and localisation

Follow
1. Setting the language:
 
Language can be set in MBOverlaySettings:
 
Set the language when creating the settings, for example here you can add

settings.language = "en"

https://github.com/BlinkID/blinkid-ios/blob/master/Samples/BlinkID-sample-Swift/BlinkID-sample-Swift/ViewController.swift#L40

 
2. Modifying and creating localization files:
 
The language set in the first step denotes which localization file will be used. 
The file has to be located in MicroBlink.bundle and has to be named
 
<language>.strings
 
The example is en.string file located in our bundle by default:
 
You can modify this file and add desired localization string for the English language.
 
If you wish to set a different language, for example, “fr”, you will need to set it like in step one, add fr.strings file to MicroBlink.bundle and fill it like en.strings is filled but with desired localizations.
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments