mirror of
https://ghfast.top/https://github.com/StarCitizenToolBox/app.git
synced 2025-08-17 02:48:21 +08:00
l10: update
This commit is contained in:
@@ -1,11 +1,18 @@
|
||||
import 'auto_l10n.dart';
|
||||
|
||||
void main(List<String> args) {
|
||||
void main(List<String> args) async {
|
||||
switch (args.elementAtOrNull(0)) {
|
||||
case "l10n_gen":
|
||||
return AutoL10nTools().genL10nFiles();
|
||||
case "l10n_replace":
|
||||
return AutoL10nTools().replaceL10nFiles();
|
||||
case "l10n_auto_translate":
|
||||
final form = args.elementAtOrNull(1);
|
||||
final to = args.elementAtOrNull(2);
|
||||
if (form == null || to == null) {
|
||||
throw Exception("form or to is null");
|
||||
}
|
||||
return await AutoL10nTools().autoTranslate(form: form, to: to);
|
||||
default:
|
||||
throw Exception("cmd not found");
|
||||
}
|
||||
|
Reference in New Issue
Block a user