Skip to content

Commit c3b5fd5

Browse files
committed
remove srCyrl option
1 parent 2a803dd commit c3b5fd5

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

src/Commands/NovaLangPublish.php

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@ class NovaLangPublish extends Command
1818
{locales? : Comma-separated list of languages}
1919
{--all : Publish all languages}
2020
{--alias= : Publish files using a different filename for certain locales, in the format "locale:alias,..."}
21-
{--zhHans : Publish Chinese translations as "zh-Hans/Hant" instead of "zh-CN/TW" }
21+
{--zhHan : Publish Chinese translations as "zh-Hans/Hant" instead of "zh-CN/TW" }
2222
{--ptBR : Publish Portuguese translations prioritizing "pt-BR" as "pt" over "pt-PT" }
23-
{--srCyrl : Publish Serbian Cyrillic translations as "sr-Cyrl" instead of "sr" }
2423
{--srLatn : Publish Serbian translations prioritizing "sr-Latn" as "sr" instead of "sr-Cyrl" }
2524
{--U|underscore : Use underscore instead of dash as locale separator }
2625
{--force : Override existing files}';
@@ -165,16 +164,10 @@ protected function getLocaleAliases($single = false): Collection
165164
$input = implode(',', array_filter([
166165
$this->option('alias'),
167166
$this->option('ptBR') ? 'pt:pt-PT,pt-BR:pt' : null,
168-
$this->option('zhHans') ? 'zh-CN:zh-Hans,zh-TW:zh-Hant' : null,
169-
$this->option('srCyrl') ? 'sr:sr-Cyrl' : null,
167+
$this->option('zhHan') ? 'zh-CN:zh-Hans,zh-TW:zh-Hant' : null,
170168
$this->option('srLatn') ? 'sr-Latn:sr,sr:sr-Cyrl' : null,
171169
]));
172170

173-
if ($this->option('srCyrl') && $this->option('srLatn')) {
174-
$this->error('Options --srCyrl and --srLatn must not be used together.');
175-
exit;
176-
}
177-
178171
if ($input) {
179172

180173
$inputs = explode(',', $input);

0 commit comments

Comments
 (0)