i18n: the find box, sort and filter builders and password toggle in Chinese
The find counts, toggles, replace buttons, the builders' add, join and direction labels, the filter tests and the password tooltip read the builtin catalog. Test::label becomes Test::key, the choice's value; its label is the catalog's. The shipped-copy scan checks button, segment and match-arm text on every match, and zh-CN render tests cover both. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
79e94f7e24
commit
a4bf6965f9
11 files changed
+303
-79
No files matched your search
+9
-5
@@ -199,11 +199,15 @@ impl RenderOnce for PasswordInput {
|
||||
},
|
||||
)
|
||||
.size(ControlSize::Sm)
|
||||
.tooltip(if masked {
|
||||
"Show password"
|
||||
} else {
|
||||
"Hide password"
|
||||
})
|
||||
.tooltip(i18n::text(
|
||||
cx,
|
||||
if masked {
|
||||
"input.show_password"
|
||||
} else {
|
||||
"input.hide_password"
|
||||
},
|
||||
&[],
|
||||
))
|
||||
.on_click(move |_, _, cx| {
|
||||
toggle.update(cx, |input, cx| {
|
||||
let masked = input.is_masked();
|
||||
|
||||
Reference in new issue
Block a user