Update and complete JournalOS translation JSON files by running composer journalos:locale and fixing missing or empty translations in lang/*.json...
This Skill keeps JournalOS translation files consistent and complete. It regenerates locale keys using the project command and then fixes missing, empty, or invalid entries inside lang/*.json files.
Use this Skill when:
composer journalos:locale
Review all translation files:
lang/*.jsonIdentify any entries that are:
"some.key": "")Apply the following rules:
Do not remove translation keys unless they are confirmed unused.
For missing keys:
For empty or invalid values:
Ensure consistency:
Preserve formatting and placeholders exactly:
:name, :count, {value}Ensure all lang/*.json files:
Confirm there are no:
If a translation is uncertain, prefer literal and conservative wording.
Maintain existing key order unless the project explicitly requires sorting.
composer test
composer journalos:locale executed successfullylang/*.json files are valid JSONAll translation files in lang/*.json are regenerated, complete, valid, and contain no missing or empty translations.