1
0
mirror of https://github.com/krawieck/lemmur/ synced 2024-12-23 06:25:29 +01:00

Format with prettier

This commit is contained in:
shilangyu 2021-03-01 12:45:57 +01:00
parent 171c18cc6c
commit ffb8fc0ada

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