Localization
š·ļø Localization
Localization is the process of adapting the Ditto ID API, MTD and IDV SDKās user interface text and messages to a specific language or region. The SDK provides out-of-the-box support for English and allows developers to customize and translate the strings to additional languages.
š¦ Modules Involved
- API SDK ā General messages and errors from API SDK.
- MTD SDK ā General messages and errors from MTD.
- IDVCore ā General messages and errors.
- IDVCore ā General messages and errors.
- IDVDocumentCapture ā Strings related to document scanning.
- IDVSelfieCapture ā Strings related to selfie authentication.
š ļø How to Implement
Each platform has specific mechanisms for supporting localization:
React Native / Flutter /Native (iOS Platform)
Integrate .strings files and enable base internationalization in the project settings.
RELID.stringsMTD.stringsIDVCore.stringsIDVDocumentCapture.stringsIDVSelfieCapture.strings
React Native / Flutter /Native (Android Platform)
Use XML string resources like:
strings_rel_id.xmlstrings_mtd.xmlstrings-idv.xmlstrings-idv-doc-scan.xmlstrings-idv-face-scan.xml
Arrange the resources into locale-specificvalues-<locale> directories (for example, values-fr, values-es).
Cordova (iOS & Android Platform)
Use .strings files or json files (e.g. en.json, fr.json, etc.) and configure the SDK plugins accordingly.
Updated 2 months ago
