feat: i18n support (#40)

This commit is contained in:
monkeyWie authored and GitHub committed 2022-11-05 17:04:22 +08:00
1 parent 135fba1b54
commit 77e59f7376
10 files changed
+172 -50

No files matched your search

+4
View File
@@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'core/libgopeed_boot.dart';
import 'i18n/messages.dart';
import 'routes/router.dart';
import 'setting/setting.dart';
import 'theme/theme.dart';
@@ -24,6 +25,9 @@ void main() async {
theme: GopeedTheme.light,
darkTheme: GopeedTheme.dark,
themeMode: Setting.instance.themeMode,
translations: messages,
locale: Setting.instance.locale,
fallbackLocale: fallbackLocale,
getPages: Routes.routes,
));
}