1
0
mirror of https://github.com/krawieck/lemmur/ synced 2024-12-22 21:38:48 +01:00

Clone and cleanup repo

This commit is contained in:
shilangyu 2021-02-28 17:25:25 +01:00
parent 7647592529
commit 5a8da5de18

View File

@ -13,9 +13,11 @@ const repoName = 'lemmy-translations';
const baseLanguage = 'en';
const flutterIntlPrefix = 'intl_';
main(List<String> args) async {
Future<void> main(List<String> args) async {
final force = args.contains('-f') || args.contains('--force');
final repoCleanup = await cloneLemmyTranslations();
final lemmyTranslations = await loadLemmyStrings();
final lemmurTranslations = await loadLemmurStrings();
portStrings(lemmyTranslations, lemmurTranslations, force: force);
@ -24,6 +26,8 @@ main(List<String> args) async {
await Process.run('flutter', ['gen-l10n']);
await repoCleanup();
print("Don't forget to format the arb files!");
}