-
Notifications
You must be signed in to change notification settings - Fork 11
Localization
The SDK ships with localized strings for the following locales:
| ISO 639-1 code | Locale |
|---|---|
en |
English |
nb |
Norwegian Bokmål |
nl |
Norwegian Nynosk |
nn |
Dutch |
tr |
Turkish |
The default locale is English, however if the user's device is set to one of the other supported languages, that language will be used instead.
If you would rather force the SDK to use a specific locale, you can do so by setting the relevant iProov SDK option and passing the ISO 639-1 code:
let options = Options()
options.ui.locale = Locale(identifier: "en") // Custom locale ISO code
IProov.launch(token: token, options: options, callback: { ... }
If you wish to offer the SDK in a language not supported by iProov, you can create your own Localizable.strings entries and override the iProov strings.
For reference, you can find the English language strings file here: Localizable.strings.
Each iProov string is prefixed with
"IProov_"to avoid collisions with any existing strings in your app.
Feel free to contact us to discuss your localization needs in more detail, or how you can contribute your translations to be packaged with the iProov SDK.