Skip to content

Commit 132a0e1

Browse files
Taegon21Devtools-frontend LUCI CQ
authored andcommitted
[network] Fix missing translations for filter hover text
The filter button's hover text in the Network panel was not being properly internationalized. The text remained in English even when other UI elements were translated. This change ensures consistent translation by properly configuring i18nString, allowing the hover text to be displayed in the user's selected language. Bug: 402648442 Change-Id: I4fcd15721bd8e3b37b5df2ae530c916bac2aec4e Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6347421 Reviewed-by: Changhao Han <[email protected]> Auto-Submit: 김태건 <[email protected]> Commit-Queue: Changhao Han <[email protected]> Reviewed-by: Simon Zünd <[email protected]>
1 parent 07c4224 commit 132a0e1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

front_end/ui/legacy/FilterBar.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,8 @@ export class TextFilterUI extends Common.ObjectWrapper.ObjectWrapper<FilterUIEve
212212
const filterToolbar = this.filterElement.createChild('devtools-toolbar');
213213
// Set the style directly on the element to overwrite parent css styling.
214214
filterToolbar.style.borderBottom = 'none';
215-
this.#filter = new ToolbarFilter(undefined, 1, 1, UIStrings.egSmalldUrlacomb, this.completions.bind(this));
215+
this.#filter =
216+
new ToolbarFilter(undefined, 1, 1, i18nString(UIStrings.egSmalldUrlacomb), this.completions.bind(this));
216217
filterToolbar.appendToolbarItem(this.#filter);
217218
this.#filter.addEventListener(ToolbarInput.Event.TEXT_CHANGED, () => this.valueChanged());
218219
this.suggestionProvider = null;

0 commit comments

Comments
 (0)