chore: locales build

This commit is contained in:
liwei committed 2023-10-23 13:55:13 +08:00
1 parent aab4a37a7e
commit ff6c0da262
3 files changed
+19 -3

No files matched your search

+4 -1
View File
@@ -65,5 +65,8 @@
"extensionInstallSuccess": "安装成功", "extensionInstallSuccess": "安装成功",
"extensionUpdateSuccess": "更新成功", "extensionUpdateSuccess": "更新成功",
"extensionDelete": "删除扩展", "extensionDelete": "删除扩展",
"extensionAlreadyLatest": "已经是最新版本" "extensionAlreadyLatest": "已经是最新版本",
"history": "历史记录",
"clearHistory": "清空历史记录",
"noHistoryFound": "暂无历史记录"
} }
@@ -160,7 +160,10 @@ class ExtensionView extends GetView<ExtensionController> {
]; ];
if (extension.devMode) { if (extension.devMode) {
list.add(const SizedBox(width: 8)); list.add(const SizedBox(width: 8));
list.add(buildChip('dev')); list.add(buildChip(
'dev',
bgColor: Colors.blue.shade300,
));
} }
return list; return list;
}(), }(),
@@ -243,9 +246,10 @@ class ExtensionView extends GetView<ExtensionController> {
); );
} }
Widget buildChip(String text) { Widget buildChip(String text, {Color? bgColor}) {
return Chip( return Chip(
padding: const EdgeInsets.all(0), padding: const EdgeInsets.all(0),
backgroundColor: bgColor,
label: Text(text, style: const TextStyle(fontSize: 12)), label: Text(text, style: const TextStyle(fontSize: 12)),
); );
} }
+9
View File
@@ -82,6 +82,9 @@ class LocaleKeys {
static const extensionUpdateSuccess = 'extensionUpdateSuccess'; static const extensionUpdateSuccess = 'extensionUpdateSuccess';
static const extensionDelete = 'extensionDelete'; static const extensionDelete = 'extensionDelete';
static const extensionAlreadyLatest = 'extensionAlreadyLatest'; static const extensionAlreadyLatest = 'extensionAlreadyLatest';
static const history = 'history';
static const clearHistory = 'clearHistory';
static const noHistoryFound = 'noHistoryFound';
} }
class Locales { class Locales {
@@ -155,6 +158,9 @@ class Locales {
'extensionUpdateSuccess': 'Updated successfully', 'extensionUpdateSuccess': 'Updated successfully',
'extensionDelete': 'Delete Extension', 'extensionDelete': 'Delete Extension',
'extensionAlreadyLatest': 'It\'s already the latest version', 'extensionAlreadyLatest': 'It\'s already the latest version',
'history': 'History',
'clearHistory': 'Clear History',
'noHistoryFound': 'No History Found',
}; };
static const fa_IR = { static const fa_IR = {
'label': 'فارسی', 'label': 'فارسی',
@@ -407,6 +413,9 @@ class Locales {
'extensionUpdateSuccess': '更新成功', 'extensionUpdateSuccess': '更新成功',
'extensionDelete': '删除扩展', 'extensionDelete': '删除扩展',
'extensionAlreadyLatest': '已经是最新版本', 'extensionAlreadyLatest': '已经是最新版本',
'history': '历史记录',
'clearHistory': '清空历史记录',
'noHistoryFound': '没有历史记录',
}; };
static const zh_TW = { static const zh_TW = {
'label': '中文 (正體) ', 'label': '中文 (正體) ',