-
-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Labels
featureNew feature or requestNew feature or request
Description
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
-
Package-Specific Translation Files:
Each package should define its own translation constants in its directory:init/assets/i18n
-
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.
- The translation files in
Process
For each file in init/assets/i18n
:
- Locate the corresponding file in
/public/assets/i18n
. - Perform the following steps:
- Extract the existing translations from the file in
/public/assets/i18n
. - Merge the translations from the package-specific file into the existing content.
- Store the merged content back into the original JSON file.
- Extract the existing translations from the file in
Metadata
Metadata
Assignees
Labels
featureNew feature or requestNew feature or request
Type
Projects
Status
No status