-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
.github: invoke gen-i10n.sh in build workflow
- Loading branch information
1 parent
7e90a6d
commit 8efb5d0
Showing
2 changed files
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
@echo off | ||
|
||
echo Generating App Localizations | ||
call flutter gen-l10n ^ | ||
--arb-dir assets/localization ^ | ||
--no-nullable-getter ^ | ||
--output-localization-file app_localizations.dart ^ | ||
--preferred-supported-locales en ^ | ||
--template-arb-file app_en.arb ^ | ||
--untranslated-messages-file i18n_untranslated_app.json ^ | ||
--use-escaping | ||
if %errorlevel% neq 0 ( | ||
echo Error generating app l10n | ||
echo Error code: %errorlevel% | ||
) | ||
|
||
echo Generating Location Localizations | ||
call flutter gen-l10n ^ | ||
--arb-dir assets/localization/locations ^ | ||
--no-nullable-getter ^ | ||
--output-class LocationsLocalizations ^ | ||
--output-localization-file locations_localizations.dart ^ | ||
--preferred-supported-locales en ^ | ||
--template-arb-file locations_en.arb ^ | ||
--untranslated-messages-file i18n_untranslated_locations.json ^ | ||
--use-escaping | ||
if %errorlevel% neq 0 ( | ||
echo Error generating locations l10n | ||
echo Error code: %errorlevel% | ||
exit /b 1 | ||
) |