mirror of
https://github.com/zadam/trilium.git
synced 2025-10-26 15:56:29 +01:00
chore(website): add list of locales
This commit is contained in:
@@ -2,6 +2,23 @@ import { default as i18next } from "i18next";
|
||||
import HttpApi from 'i18next-http-backend';
|
||||
import { initReactI18next } from "react-i18next";
|
||||
|
||||
interface Locale {
|
||||
id: string;
|
||||
name: string;
|
||||
rtl?: boolean;
|
||||
}
|
||||
|
||||
export const LOCALES: Locale[] = [
|
||||
{ id: "ro", name: "Română" },
|
||||
{ id: "zh_TW", name: "繁體中文" },
|
||||
{ id: "fr", name: "Français" },
|
||||
{ id: "it", name: "Italiano" },
|
||||
{ id: "ja", name: "日本語" },
|
||||
{ id: "pl", name: "Polski" },
|
||||
{ id: "es", name: "Español" },
|
||||
{ id: "ar", name: "اَلْعَرَبِيَّةُ", rtl: true },
|
||||
];
|
||||
|
||||
i18next
|
||||
.use(HttpApi)
|
||||
.use(initReactI18next);
|
||||
|
||||
Reference in New Issue
Block a user