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 -1
View File
@@ -5,6 +5,7 @@ use gpui::{
div, prelude::*,
};
use crate::i18n;
use crate::{
buttons::{Button, ButtonVariant, IconButton, ToggleButton, ToggleItem},
forms::{Input, TextInput},
@@ -295,7 +296,7 @@ impl RenderOnce for FindWidget {
IconButton::new((self.id.clone(), "close"), IconName::X)
.variant(ButtonVariant::Ghost)
.size(ControlSize::Sm)
.tooltip("Close")
.tooltip(i18n::text(cx, "dialog.close", &[]))
.on_click(move |_, window, cx| close(window, cx))
})),
)
+2 -1
View File
@@ -7,6 +7,7 @@ use gpui::{
};
use super::{symbols::SymbolKind, syntax};
use crate::i18n;
use crate::{
buttons::{ButtonVariant, IconButton},
navigation::{fuzzy, marked},
@@ -185,7 +186,7 @@ impl RenderOnce for CompletionMenu {
.px_2()
.py_1()
.text_color(colors.fg_subtle)
.child("No suggestions"),
.child(i18n::text(cx, "completion.empty", &[])),
)
})
.children(rows),