mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-16 05:13:41 +00:00
feat: i18n support (#40)
This commit is contained in:
1 parent
135fba1b54
commit
77e59f7376
10 files changed
+172
-50
No files matched your search
@@ -26,12 +26,12 @@ class _DirectorySelectorState extends State<DirectorySelector> {
|
||||
readOnly: true,
|
||||
controller: widget.controller,
|
||||
decoration: widget.showLabel
|
||||
? const InputDecoration(
|
||||
labelText: "下载目录",
|
||||
? InputDecoration(
|
||||
labelText: 'setting.downloadDir'.tr,
|
||||
)
|
||||
: null,
|
||||
validator: (v) {
|
||||
return v!.trim().isNotEmpty ? null : "请选择下载目录";
|
||||
return v!.trim().isNotEmpty ? null : 'setting.downloadDirValid'.tr;
|
||||
},
|
||||
)),
|
||||
IconButton(
|
||||
|
||||
Reference in new issue
Block a user