mirror of
https://github.com/krawieck/lemmur/
synced 2024-12-23 06:25:29 +01:00
Clone and cleanup repo
This commit is contained in:
parent
7647592529
commit
5a8da5de18
@ -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!");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user