Fallback Mechanism:

  • If a client library (process to add a new locale, explained later in this document) for the requested locale is unavailable, AEM Forms checks for a library based on the language code within the locale.

    Example: If en_ZA (South African English) is requested and there’s no en_ZA library, it uses en (English) if available.

    If no suitable client library is found, the default dictionary (mostly en) for the form’s authoring language is used.

    In the absence of any locale information, the Adaptive Form displays in its original language used during development.

Prerequisites for adding a locale

Before you begin adding a new locale for your Adaptive Forms, ensure you have the following:

Software:

  • Plain Text Editor (IDE): While any plain text editor can work, an Integrated Development Environment (IDE) like Microsoft Visual Studio Code offers advanced features for easier editing.

  • Git: This version control system is required for managing code changes. If you don’t have it installed, download it from https://git-scm.com.

Code Repository:

Clone the Adaptive Forms Core Components Repository: You need a client library from this repository for adding a locale. To clone the repository:

  1. Open your command line or terminal window.

  2. Navigate to the desired location on your machine where you want to store the repository (for example, /adaptive-forms-core-components).

  3. Run the following command to clone the repository:

    git clone https://github.com/adobe/aem-core-forms-components.git
    

    This command downloads the repository and create a folder named aem-core-forms-components on your machine. Throughout this guide, we refer to this folder as the [Adaptive Forms Core Components repository].