i18n: shipped components read their copy from the catalog
CI / platforms (windows-latest) (push) Failing after 16s
CI / site (push) Successful in 25s
CI / crate (push) Failing after 10m59s
CI / platforms (ubuntu-24.04) (push) Canceled after 0s

Select's default placeholder, the clear, close, remove and unpin tooltips,
the completion menu's empty line and the size sample showed English under
zh-CN. A source test now fails on any fixed English literal in them.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
ZacharyZhang-NYandClaude Opus 5.5 committed 2026-10-14 19:53:00 -04:00
1 parent 1b5fb07cda
commit d05b1b78ca
11 files changed
+86 -15

No files matched your search

+2 -2
View File
@@ -223,7 +223,7 @@ impl RenderOnce for FontSizeControl {
)
.child(
IconButton::new((self.id, "reset"), IconName::RotateCcw)
.tooltip("Back to the default size")
.tooltip(i18n::text(cx, "theme.size.reset", &[]))
.disabled(self.size == default)
.on_click(move |_, window, cx| {
reset(default, window, cx);
@@ -237,7 +237,7 @@ impl RenderOnce for FontSizeControl {
.min_w_0()
.text_size(Pixels::from(self.size))
.text_color(theme.colors.fg)
.child("The quick brown fox jumps over the lazy dog."),
.child(i18n::text(cx, "theme.size.sample", &[])),
),
)
}