diff --git a/.vscode/extensions.json b/.vscode/extensions.json index b8238078b..19fef92c0 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -1,5 +1,6 @@ { "recommendations": [ - "ipcjs.i18n-ally-ipcjs" + "ipcjs.i18n-ally-ipcjs", + "emeraldwalk.runonsave" ] } \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json index 1f2212026..6e729f5ec 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -36,5 +36,14 @@ "l10n.{key}({args})" ] } - ] + ], + "emeraldwalk.runonsave": { + "commands": [ + { + "match": ".*.arb", + "isAsync": false, + "cmd": "dart pub global activate arb_utils && arb_utils generate-meta ./lib/l10n/app_en.arb && arb_utils sort ./lib/l10n/app_en.arb && flutter gen-l10n" + }, + ] + } } \ No newline at end of file