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

32 lines
700 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";
import ru from "./translations/ru.json";
export const languages = {
en: "English",
de: "Deutsch",
2023-08-29 15:57:32 +02:00
es: "Español",
fr: "Français",
2023-08-27 23:52:01 +02:00
ru: "Русский",
};
export const strings: Record<keyof typeof languages, Record<string, string>> = {
2023-08-29 19:14:55 +02:00
en,
de,
es,
fr,
ru,
} as const;
export const defaultLanguage: keyof typeof strings = "en";