Skip to content

Commit f103d47

Browse files
committed
feat(combo): Add search placeholder localization.
1 parent 757494f commit f103d47

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

src/components/combo/combo.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,19 @@ export default class IgcComboComponent<
301301
* @attr placeholder-search
302302
*/
303303
@property({ attribute: 'placeholder-search' })
304-
public placeholderSearch = 'Search';
304+
public set placeholderSearch(value: string) {
305+
this._placeholderSearch = value;
306+
}
307+
308+
public get placeholderSearch() {
309+
return (
310+
this._placeholderSearch ??
311+
this.resourceStrings.combo_filter_search_placeholder ??
312+
'Search'
313+
);
314+
}
315+
316+
private _placeholderSearch: string | undefined;
305317

306318
/**
307319
* Sets the open state of the component.

0 commit comments

Comments
 (0)