Skip to content

[FEATURE] - improve handling of Apps translations terms #211

@cedricfrancoys

Description

@cedricfrancoys

Current Setup

Currently, there is a single translation file per language located in:

/public/assets/i18n

This file is part of the initialization files for the core package.

Requirements

  1. Package-Specific Translation Files:
    Each package should define its own translation constants in its directory:

    init/assets/i18n
    
  2. Dynamic Enrichment of Global Translation Files:
    During the initialization of a package:

    • The translation files in /public/assets/i18n should be dynamically enriched with the content from the package-specific files.

Process

For each file in init/assets/i18n:

  • Locate the corresponding file in /public/assets/i18n.
  • Perform the following steps:
    1. Extract the existing translations from the file in /public/assets/i18n.
    2. Merge the translations from the package-specific file into the existing content.
    3. Store the merged content back into the original JSON file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or request

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions