Use proper casing for i18n locales (#1998)

This commit is contained in:
Jeff
2026-05-11 19:42:07 -07:00
committed by GitHub
parent e49e488b4c
commit e2a1d813a9
224 changed files with 17323 additions and 18474 deletions
@@ -28,11 +28,7 @@ export const SelectWithInvalidData = ({ data, defaultValue, ...props }: SelectPr
<Select
data={fullData}
defaultValue={defaultValue}
error={
hasError
? t('error.badValue', { postProcess: 'sentenceCase', value: defaultValue })
: undefined
}
error={hasError ? t('error.badValue', { value: defaultValue }) : undefined}
{...props}
/>
);
@@ -74,10 +70,7 @@ export const MultiSelectWithInvalidData = ({
}, [data, currentValue]);
const error = useMemo(
() =>
missing.length
? t('error.badValue', { postProcess: 'sentenceCase', value: missing })
: undefined,
() => (missing.length ? t('error.badValue', { value: missing }) : undefined),
[missing, t],
);