Format with prettier

This commit is contained in:
shilangyu 2021-03-01 12:45:57 +01:00
parent 171c18cc6c
commit ffb8fc0ada
1 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,5 @@
/// migrates chosen strings from lemmy-translations into flutter's i18n solution
/// uses prettier to format the files
import 'dart:convert';
import 'dart:io';
@ -129,7 +130,8 @@ Future<void> main(List<String> args) async {
await repoCleanup();
print("Don't forget to format the arb files!");
await Process.run(
'npx', ['prettier', 'lib/l10n/*.arb', '--parser', 'json', '--write']);
}
/// returns a cleanup function