If you want to name codes differently, such as
de-DE instead of
de-CH instead of
de_CH, you can define
aliases in the configuration file.
After that, all adding, updating, and deleting actions will automatically use the specified aliases in the
config/localization.php config file:
config/localization.php file already exists, then you can add the aliases key in it and specify the desired
aliases using a data array.
After this, you can, for example, add new localizations by specifying both the main code and its alias:
Installed locales will use the specified aliases as folder names for PHP translations and file names for JSON translations: