mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-18 06:13:42 +00:00
fix locale in get-cli standard (#81)
* refactor project in get-cli standard * use local trackers when github is not connectable upgrade stylish_bottom_bar to 1.0.0 responsive view for home_view treeview for file_list_vie fluent ui integrating * improve responsive view. treeView add light theme.fix overflow bugs * responsive view,treeView,file select downloaded and downloading pages file extension icons fix some minor bugs * use local trackers when github is not connectable upgrade stylish_bottom_bar to 1.0.0 responsive view for home_view treeview for file_list_vie fluent ui integrating * improve responsive view. treeView add light theme.fix overflow bugs * bottom bar index fix * refactor project in get-cli standard --------- Co-authored-by: wuke2022 <[email protected]>
This commit is contained in:
1 parent
74c24ad860
commit
c0e24ce869
19 files changed
+41
-270
No files matched your search
@@ -7,6 +7,7 @@ import 'package:gopeed/i18n/messages.dart';
|
||||
import 'app/modules/app/controllers/app_controller.dart';
|
||||
import 'app/modules/app/views/app_view.dart';
|
||||
import 'core/libgopeed_boot.dart';
|
||||
import 'generated/locales.g.dart';
|
||||
import 'util/log_util.dart';
|
||||
import 'util/mac_secure_util.dart';
|
||||
import 'util/package_info.dart';
|
||||
@@ -52,9 +53,11 @@ Future<void> onStart() async {
|
||||
// if is debug mode, check language message is complete
|
||||
if (kDebugMode) {
|
||||
final mainLang = getLocaleKey(mainLocale);
|
||||
final fullMessages = messages.keys[mainLang];
|
||||
messages.keys.keys.where((e) => e != mainLang).forEach((lang) {
|
||||
final langMessages = messages.keys[lang];
|
||||
final fullMessages = AppTranslation.translations[mainLang];
|
||||
AppTranslation.translations.keys
|
||||
.where((e) => e != mainLang)
|
||||
.forEach((lang) {
|
||||
final langMessages = AppTranslation.translations[lang];
|
||||
if (langMessages == null) {
|
||||
logger.w("missing language: $lang");
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user