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:
Evan Rusackas
2026-02-22 21:27:37 -08:00
committed by GitHub
co-authored by Claude Opus 4.5
parent 672a380587
commit 3f64ad3da5
71 changed files with 65097 additions and 15158 deletions
@@ -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}