applyTo: "app/i18n//.php"
cli/manipulate.translation.php script or the corresponding make commands.To add a new translatable string across all languages:
./cli/manipulate.translation.php --action add --key 'example.of.key' --value 'Example of text'
# or
make i18n-add-key key='example.of.key' value='Example of text'
This will:
app/i18n/en/gen.php) with the provided value// TODO for translatorsYou should then:
// TODO comment in English en/// IGNORE comment in US English en-US/ or adapt the string in case of regional differencesTo delete a translation key from all languages:
./cli/manipulate.translation.php --action delete --key 'old.key.path'
See all available commands with:
./cli/manipulate.translation.php -a --help
After manipulating translation, you should call the following to reformat and ensure consistency:
composer run-script translations
# or (targeting more than just translations)
make fix-all