feat: establish frontend foundation

This commit is contained in:
2026-08-12 23:04:16 +03:00
parent 3331b7f684
commit 1e13adabd3
46 changed files with 2868 additions and 1588 deletions
+13
View File
@@ -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 };
+19
View File
@@ -0,0 +1,19 @@
export const ru = {
translation: {
appName: "WealthLedger",
navigation: { accounts: "Счета", settings: "Настройки" },
auth: { login: "Вход", register: "Регистрация" },
accounts: { title: "Счета" },
account: { title: "Счет" },
settings: { title: "Настройки" },
notFound: { title: "Страница не найдена", action: "К счетам" },
states: {
loadingTitle: "Загрузка",
loadingText: "Пожалуйста, подождите.",
errorTitle: "Что-то пошло не так",
errorText: "Попробуйте обновить страницу позже.",
emptyTitle: "Пока ничего нет",
emptyText: "Данные появятся здесь.",
},
},
} as const;