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.strings
  • MTD.strings
  • IDVCore.strings
  • IDVDocumentCapture.strings
  • IDVSelfieCapture.strings

React Native / Flutter /Native (Android Platform)

Use XML string resources like:

  • strings_rel_id.xml
  • strings_mtd.xml
  • strings-idv.xml
  • strings-idv-doc-scan.xml
  • strings-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.