Skip to content

Commit

Permalink
Turkish language support (#399)
Browse files Browse the repository at this point in the history
  • Loading branch information
fatihusta committed Aug 5, 2022
1 parent 77b0114 commit fd74373
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 0 deletions.
4 changes: 4 additions & 0 deletions web/src/layouts/MainLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,10 @@ export default {
label: "English",
value: "en",
},
{
label: "Türkçe",
value: "tr",
},
{
label: "简体中文",
value: "zh-cn",
Expand Down
4 changes: 4 additions & 0 deletions web/src/locales/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,16 @@ import { getLanguage } from "../utils/cookies";

// User defined lang
import enLocale from "./en";
import trLocale from "./tr";
import zhLocale from "./zh-cn";

const messages = {
en: {
...enLocale,
},
tr: {
...trLocale,
},
"zh-cn": {
...zhLocale,
},
Expand Down
59 changes: 59 additions & 0 deletions web/src/locales/tr.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
export default {
search: {
selectIndex: "İndeks Seçin",
typeSearch: "Sorgu",
searchField: "Sütun Ara",
maxRecords: "Gösterilecek maksimum kayıt",
searchResult: "Arama Sonuçları",
timestamp: "Zaman Damgası",
source: "_kaynak",
noResult: "Sonuç yok",
syntaxGuide: "Sorgu dili kılavuzu",
},
menu: {
about: "Hakkında",
user: "Kullanıcı",
index: "İndeks",
search: "Ara",
template: "Şablon",
signOut: "Oturumu Kapat",
account: "Hesap",
feedback: "Geri bildirim",
zincSearch: "ZincSearch",
documentation: "Doküman",
openapi: "API",
},
about: {
name: "Zinc",
introduction: "Modern, açık kaynak kodlu arama motoru.",
},
login: {
userid: "Kullanıcı Adı",
signIn: "Giriş Yap",
password: "Parola",
},
user: {
header: "Kullanıcılar",
id: "Kullanıcı Adı",
name: "Adı Soyadı",
role: "Yetki",
CREATED: "Oluşturuldu",
UPDATED: "Güncellendi",
password: "Parola",
repassword: "Parola Tekrar",
addOrUpdate: "Ekle/Güncelle",
add: "Ekle",
search: "Ara",
},
index: {
header: "İndeksler",
add: "Ekle",
delete: "Sil",
search: "Ara",
},
template: {
header: "Şablonlar",
add: "Ekle",
search: "Ara",
},
};

0 comments on commit fd74373

Please sign in to comment.