Skip to content

Ionic

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 platforms/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"
})