chore: codify React component style
This commit is contained in:
@@ -2,8 +2,10 @@ import type { ParseKeys } from "i18next";
|
||||
|
||||
import { i18n } from "./i18n";
|
||||
|
||||
export function validationMessage(
|
||||
function validationMessage(
|
||||
key: ParseKeys,
|
||||
): (_value: unknown) => { message: string } {
|
||||
return () => ({ message: i18n.t(key) });
|
||||
}
|
||||
|
||||
export { validationMessage };
|
||||
|
||||
Reference in New Issue
Block a user