Localization275 Documents

Localization Placement

Allow a localization directory only at the root of a core or part, or inside the top-level common directory of a runnable repository. A part inside a runnable may have its own root localization directory. Exclude the generated docs repository from this placement rule. Forbid localization directories in processes, themes, and every other location. Apply this rule to the directory and every file beneath it.

Correct

/home/dev/core/localization/en.json
/home/dev/site/localization/en.json
/home/dev/blog/localization/en.json
/home/dev/taskOs/common/localization/en.json
/home/dev/taskOs/task/localization/en.json

Incorrect

/home/dev/taskOs/site/localization/en.json
/home/dev/blog/site/localization/en.json
/home/dev/core/site/localization/en.json

Fix

Move translations to the owning core or part’s top-level localization directory, or the runnable’s common/localization directory, then update their loading paths.