You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-5Lines changed: 16 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -344,24 +344,35 @@ Example
344
344
345
345
### 5. Localization
346
346
347
-
Onfido SDKs support a number of out-of-the-box translations. However, you can add your own translations.
347
+
The SDK supports and maintains the following 6 languages:
348
+
349
+
- English (en) 🇬🇧
350
+
- Spanish (es) 🇪🇸
351
+
- French (fr) 🇫🇷
352
+
- German (de) 🇩🇪
353
+
- Italian (it) 🇮🇹
354
+
- Portuguese (pt) 🇵🇹
355
+
356
+
However, you can add your own translations.
348
357
349
358
#### Android
350
359
351
360
By default, custom localisation is enabled on Android. There is no configuration needed on React Native SDK to enable it.
352
361
You could also provide custom translation for a locale that we don’t currently support, by having an additional XML strings file inside your resources folder for the desired locale. See [Localisation section of Android SDK repo](https://github.com/onfido/onfido-android-sdk#4-localisation) for the details.
353
362
354
363
#### iOS
364
+
You can also provide a custom translation for a locale that Onfido doesn't currently support.
365
+
There is a simple configuration needed on the React Native SDK to enable custom localisation.
355
366
356
-
If you want to enable custom localisation, add this statement to your configuration object.
357
-
367
+
1. Add this statement to your configuration object.
358
368
```
359
369
localisation: {
360
370
ios_strings_file_name: '<Your .strings file name in iOS app bundle>',
361
371
},
362
372
```
363
-
364
-
In this case SDK will show strings from the provided file. For more detailed explanation please check out [Localisation section of iOS SDK repo.](https://github.com/onfido/onfido-ios-sdk#language-customisation)
373
+
2. Navigate to the iOS folder ```cd ios```, and open your XCode workspace.
374
+
3. Follow the instructions for [iOS Localisation](https://medium.com/lean-localization/ios-localization-tutorial-938231f9f881) to add a new custom language or override existing translations.
375
+
4. You can find the keys that need to be translated in the [iOS SDK repo](https://github.com/onfido/onfido-ios-sdk/blob/master/localization/Localizable_EN.strings).
0 commit comments