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.
