From 6e1b5c2de0057efe4eeb062095f4327f71346512 Mon Sep 17 00:00:00 2001 From: wuxinglong Date: Mon, 6 Jul 2026 16:37:06 +0800 Subject: [PATCH] =?UTF-8?q?fix(picker):=20=E4=BB=85=E6=9C=AC=E5=9C=B0?= =?UTF-8?q?=E5=8C=96=E5=AE=89=E5=8D=93=E6=80=BB=E7=9B=B8=E5=86=8C=E5=90=8D?= =?UTF-8?q?=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/utils/asset_picker_localization.dart | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/lib/utils/asset_picker_localization.dart b/lib/utils/asset_picker_localization.dart index fb43b81..fac13d1 100644 --- a/lib/utils/asset_picker_localization.dart +++ b/lib/utils/asset_picker_localization.dart @@ -8,25 +8,9 @@ abstract final class AssetPickerLocalization { ) { final Locale locale = Localizations.maybeLocaleOf(context) ?? WidgetsBinding.instance.platformDispatcher.locale; - if (locale.languageCode.toLowerCase() != 'zh') { - return path.name; - } - if (path.isAll) { + if (locale.languageCode.toLowerCase() == 'zh' && path.isAll) { return '最近项目'; } - - const Map systemPathNames = { - 'recent': '最近项目', - 'recents': '最近项目', - 'camera': '相机', - 'camera roll': '相机', - 'screenshot': '截屏', - 'screenshots': '截屏', - 'download': '下载', - 'downloads': '下载', - 'pictures': '图片', - 'movies': '视频', - }; - return systemPathNames[path.name.trim().toLowerCase()] ?? path.name; + return path.name; } }