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

+3 -2
View File
@@ -6,6 +6,7 @@ use gpui::{
};
use super::{FilterRule, SortKey, Test};
use crate::i18n;
use crate::{
buttons::{Button, ButtonVariant, IconButton, SegmentedControl},
forms::{Choice, Input, InputEvent, Select, TextInput},
@@ -205,7 +206,7 @@ impl RenderOnce for FilterBuilder {
IconButton::new((id.clone(), format!("remove-{ix}")), IconName::X)
.variant(ButtonVariant::Ghost)
.size(ControlSize::Sm)
.tooltip("Remove")
.tooltip(i18n::text(cx, "builder.remove", &[]))
.on_click(move |_, window, cx| {
let mut next = for_remove.clone();
next.remove(ix);
@@ -377,7 +378,7 @@ impl RenderOnce for SortBuilder {
IconButton::new((id.clone(), format!("sort-remove-{ix}")), IconName::X)
.variant(ButtonVariant::Ghost)
.size(ControlSize::Sm)
.tooltip("Remove")
.tooltip(i18n::text(cx, "builder.remove", &[]))
.on_click(move |_, window, cx| {
let mut next = for_remove.clone();
next.remove(ix);