toot-script-condivisione-su.../src/i18n/translations.ts

35 lines
915 B
TypeScript
Raw Normal View History

2023-09-02 16:17:15 +02:00
/*!
* This file is part of ShareFedi
* https://github.com/kytta/share2fedi
*
* SPDX-FileCopyrightText: © 2023 Nikita Karamov <me@kytta.dev>
* SPDX-License-Identifier: AGPL-3.0-only
*/
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";
export const languages = {
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" },
};
export const strings: Record<keyof typeof languages, Record<string, string>> = {
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,
} as const;
export const defaultLanguage: keyof typeof strings = "en";