feat: enforce frontend quality guardrails
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import i18n from "i18next";
|
||||
import { initReactI18next } from "react-i18next";
|
||||
|
||||
import { ru } from "./locales/ru";
|
||||
|
||||
void i18n.use(initReactI18next).init({
|
||||
resources: { ru },
|
||||
lng: "ru",
|
||||
fallbackLng: "ru",
|
||||
interpolation: { escapeValue: false },
|
||||
});
|
||||
|
||||
export { i18n };
|
||||
@@ -1,14 +1 @@
|
||||
import i18n from "i18next";
|
||||
import { initReactI18next } from "react-i18next";
|
||||
|
||||
import { ru } from "./locales/ru";
|
||||
|
||||
void i18n.use(initReactI18next).init({
|
||||
resources: { ru },
|
||||
lng: "ru",
|
||||
fallbackLng: "ru",
|
||||
interpolation: { escapeValue: false },
|
||||
});
|
||||
|
||||
export { validationMessage } from "./zod";
|
||||
export { i18n };
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { ParseKeys } from "i18next";
|
||||
|
||||
import { i18n } from ".";
|
||||
import { i18n } from "./i18n";
|
||||
|
||||
export function validationMessage(
|
||||
key: ParseKeys,
|
||||
|
||||
Reference in New Issue
Block a user