Initial Commit

This commit is contained in:
Damian Wessels
2025-09-08 11:01:51 +02:00
commit fd33b5ceba
81 changed files with 17432 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
import i18n from "i18next";
import { initReactI18next } from "react-i18next";
i18n.use(initReactI18next).init({
fallbackLng: "en",
resources: {
en: {
translation: {
appName: "electron-shadcn",
titleHomePage: "Home Page",
titleSecondPage: "Second Page",
},
},
"pt-BR": {
translation: {
appName: "electron-shadcn",
titleHomePage: "Página Inicial",
titleSecondPage: "Segunda Página",
},
},
},
});

View File

@@ -0,0 +1,14 @@
import { Language } from "./language";
export default [
{
key: "en",
nativeName: "English",
prefix: "EN-US",
},
{
key: "pt-BR",
nativeName: "Português (Brasil)",
prefix: "PT-BR",
},
] satisfies Language[];

View File

@@ -0,0 +1,5 @@
export interface Language {
key: string;
nativeName: string;
prefix: string;
}