added application page
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
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];
|
||||
}
|
||||
Reference in New Issue
Block a user