Aliases

If you want to name codes differently, such as de-DE instead of de or de-CH instead of de_CH, you can define aliases in the configuration fileopen in new window.

After that, all adding, updating, and deleting actions will automatically use the specified aliases.

For example, config/lang-publisher.php config file:

<?php

use LaravelLang\Publisher\Constants\Locales;

return [
    'aliases' => [
        Locales::GERMAN->value => 'de-DE',

        Locales::GERMAN_SWITZERLAND->value => 'de-CH',
    ],
];
php artisan lang:add de de_CH
lang
    de-CH
    de-DE