Add gen_l10n sorting tests (#46247)

* Add tests for sorting arbPathString, supportedLocales and supportedLanguageCodes alphabetically

* Plural arbPathStrings

* Factor out singleZhMessageArbFileString

* Make translations more accurate and generic
This commit is contained in:
Shi-Hao Hong
2019-12-13 10:03:56 -08:00
committed by GitHub
parent 6a5ef29a75
commit 2eed59c1d5
3 changed files with 84 additions and 14 deletions

View File

@@ -92,7 +92,7 @@ Future<void> main(List<String> arguments) async {
'--output-dir=${localizationsGenerator.l10nDirectory.path}',
'--no-use-deferred-loading',
localizationsGenerator.outputFile.path,
...localizationsGenerator.arbFilenames,
...localizationsGenerator.arbPathStrings,
]);
if (generateFromArbResult.exitCode != 0) {
stderr.write(generateFromArbResult.stderr);