i18n: shipped components read their copy from the catalog
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:
1 parent
1b5fb07cda
commit
d05b1b78ca
11 files changed
+86
-15
No files matched your search
+2
-1
@@ -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
@@ -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),
|
||||
|
||||
Reference in new issue
Block a user