Files
prod-wag-backend-automate-s…/WebServices/management-frontend/src/components/Pages/application/language.ts
2025-04-28 02:30:06 +03:00

43 lines
861 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
export type LanguageKey = "en" | "tr";
export interface TranslationSet {
showing: string;
of: string;
items: string;
total: string;
filtered: string;
page: string;
previous: string;
next: string;
itemsPerPage: string;
};
export const translations: Record<LanguageKey, TranslationSet> = {
en: {
showing: "Showing",
of: "of",
items: "items",
total: "Total",
filtered: "Filtered",
page: "Page",
previous: "Previous",
next: "Next",
itemsPerPage: "Items per page",
},
tr: {
showing: "Gösteriliyor",
of: "/",
items: "öğe",
total: "Toplam",
filtered: "Filtrelenmiş",
page: "Sayfa",
previous: "Önceki",
next: "Sonraki",
itemsPerPage: "Sayfa başına öğe",
},
};
export function getTranslation(lang: LanguageKey): TranslationSet {
return translations[lang];
}