-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathtranslations.ts
40 lines (36 loc) · 1.11 KB
/
translations.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*!
* This file is part of Share₂Fedi
* https://github.com/kytta/share2fedi
*
* SPDX-FileCopyrightText: © 2023 Nikita Karamov <[email protected]>
* SPDX-License-Identifier: AGPL-3.0-only
*/
import ar from "./translations/ar.json";
import de from "./translations/de.json";
import en from "./translations/en.json";
import es from "./translations/es.json";
import fr from "./translations/fr.json";
import nl from "./translations/nl.json";
import ru from "./translations/ru.json";
import zhHans from "./translations/zh-Hans.json";
export const languages = {
ar: { autonym: "العربية", dir: "rtl" },
de: { autonym: "Deutsch", dir: "ltr" },
en: { autonym: "English", dir: "ltr" },
es: { autonym: "Español", dir: "ltr" },
fr: { autonym: "Français", dir: "ltr" },
nl: { autonym: "Nederlands", dir: "ltr" },
ru: { autonym: "Русский", dir: "ltr" },
"zh-Hans": { autonym: "中文(简体)", dir: "ltr" },
};
export const strings: Record<keyof typeof languages, Record<string, string>> = {
ar,
de,
en,
es,
fr,
nl,
ru,
"zh-Hans": zhHans,
} as const;
export const defaultLanguage: keyof typeof strings = "en";