Skip to content

@@ -1,19 +0,0 @@

title: Face SDK localization on React Native description: How to add custom localization to the Face SDK on React Native


React Native

To change the existing localization, you can use the setLocalizationDictionary function provided by the Face SDK. This will remap any string found in the native API.

To see all the localization keys, look up the FaceSDK.strings file at ios/Pods/FaceSDK/FaceSDK.xcframework/ios-arm64/FaceSDK.framework/FaceSDK.bundle/en.lproj/FaceSDK.strings.

Here is an example of how you can override any existing localization provided by the Face SDK:

FaceSDK.setLocalizationDictionary({
  "livenessGuide.head": "My first custom string",
  "livenessGuide.button": "My second custom string"
}, _=>{}, _=>{})