Cordova

🌐 Cordova Localization for REL-ID IDV SDK

This guide outlines how to enable and customize localization in Cordova applications using the REL-ID IDV SDK


🧾 Overview

REL-ID IDV plugin provides support for custom language localization and UI theme customization. English is the default language, but developers can override it or add new languages.


📦 Provided Artifacts

  • RdnaIDVLocalization.zip – a zip file from Uniken containing localization assets
    • Includes en.json (English), hi.json (Hindi) under the translations/app/ directory.

🛠️ Steps to Enable Localization

1. Extract Localization Assets

Extract the RdnaIDVLocalization.zip and place the folder in your project’s root or parallel to the www folder.

2. Add Localization Plugin

Run the following command:

cordova plugin add ./RdnaIDVLocalization

3. Locate Translations

Navigate to:

RdnaIDVLocalization → translations → app

You’ll find:

  • en.json – default English strings
  • hi.json – Hindi strings

4. Override Default Strings

Open these files and modify the key-value pairs to suit your custom wording in English or Hindi.

5. Add a New Language

To support more languages:

  • Create a new file: <locale>.json (e.g., fr.json, ja.json)
  • Add translation strings in that file.

6. Reinstall the Plugin

If plugin was already added:

cordova plugin remove cordova-plugin-rdnaidv-localization
cordova plugin add ./RdnaIDVLocalization

📌 Notes

  • Each JSON file contains platform-specific keys and their string values.
  • All custom languages must follow the same structure as en.json.

By following this setup, your Cordova app will support localized experiences using the REL-ID IDV SDK.