2023-09-02 16:17:15 +02:00
|
|
|
/*!
|
|
|
|
* This file is part of Share₂Fedi
|
|
|
|
* https://github.com/kytta/share2fedi
|
|
|
|
*
|
|
|
|
* SPDX-FileCopyrightText: © 2023 Nikita Karamov <me@kytta.dev>
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
*/
|
|
|
|
|
2024-01-28 18:34:57 +01:00
|
|
|
import ar from "./translations/ar.json";
|
2023-08-29 19:14:55 +02:00
|
|
|
import de from "./translations/de.json";
|
|
|
|
import en from "./translations/en.json";
|
|
|
|
import es from "./translations/es.json";
|
|
|
|
import fr from "./translations/fr.json";
|
2023-09-09 20:12:31 +02:00
|
|
|
import nl from "./translations/nl.json";
|
2023-08-29 19:14:55 +02:00
|
|
|
import ru from "./translations/ru.json";
|
|
|
|
|
2023-08-27 23:43:01 +02:00
|
|
|
export const languages = {
|
2024-01-28 18:34:57 +01:00
|
|
|
ar: { autonym: "العربية", dir: "rtl" },
|
2024-01-20 16:23:26 +01:00
|
|
|
en: { autonym: "English", dir: "ltr" },
|
|
|
|
de: { autonym: "Deutsch", dir: "ltr" },
|
|
|
|
es: { autonym: "Español", dir: "ltr" },
|
|
|
|
fr: { autonym: "Français", dir: "ltr" },
|
|
|
|
nl: { autonym: "Nederlands", dir: "ltr" },
|
|
|
|
ru: { autonym: "Русский", dir: "ltr" },
|
2023-08-27 23:43:01 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
export const strings: Record<keyof typeof languages, Record<string, string>> = {
|
2024-01-28 18:34:57 +01:00
|
|
|
ar,
|
2023-08-29 19:14:55 +02:00
|
|
|
en,
|
|
|
|
de,
|
|
|
|
es,
|
|
|
|
fr,
|
2023-09-09 20:12:31 +02:00
|
|
|
nl,
|
2023-08-29 19:14:55 +02:00
|
|
|
ru,
|
2023-08-27 23:43:01 +02:00
|
|
|
} as const;
|
|
|
|
|
|
|
|
export const defaultLanguage: keyof typeof strings = "en";
|