improve generic error validation messages

This commit is contained in:
Josh Hawkins
2026-02-27 09:37:57 -06:00
parent dd0c497fd3
commit f534c7216a
5 changed files with 16 additions and 21 deletions
@@ -68,10 +68,10 @@ export function ConfigForm({
formContext,
i18nNamespace,
}: ConfigFormProps) {
const { t } = useTranslation([
const { t, i18n } = useTranslation([
i18nNamespace || "common",
"views/settings",
"validation",
"config/validation",
]);
const [showAdvanced, setShowAdvanced] = useState(false);
@@ -117,7 +117,7 @@ export function ConfigForm({
);
// Create error transformer for user-friendly error messages
const errorTransformer = useMemo(() => createErrorTransformer(t), [t]);
const errorTransformer = useMemo(() => createErrorTransformer(i18n), [i18n]);
const handleChange = useCallback(
(e: IChangeEvent) => {