mirror of
https://github.com/apache/superset.git
synced 2026-09-01 21:11:28 +00:00
fix(i18n): wrap untranslated frontend strings and add i18n lint rule (#37776)
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.5
parent
672a380587
commit
3f64ad3da5
+3
-2
@@ -25,6 +25,7 @@ import {
|
||||
Ref,
|
||||
} from 'react';
|
||||
import { Row, FilterValue } from 'react-table';
|
||||
import { t, tn } from '@apache-superset/core';
|
||||
import { Input, type InputRef, Space } from '@superset-ui/core/components';
|
||||
import useAsyncState from '../utils/useAsyncState';
|
||||
|
||||
@@ -59,11 +60,11 @@ function DefaultSearchInput({
|
||||
}: SearchInputProps) {
|
||||
return (
|
||||
<Space direction="horizontal" size={4} className="dt-global-filter">
|
||||
Search
|
||||
{t('Search')}
|
||||
<Input
|
||||
size="small"
|
||||
ref={inputRef}
|
||||
placeholder={`${count} records...`}
|
||||
placeholder={tn('%s record...', '%s records...', count, count)}
|
||||
value={value}
|
||||
onChange={onChange}
|
||||
onBlur={onBlur}
|
||||
|
||||
Reference in New Issue
Block a user