feat: add Turkish Translation file (#1202)

* Created tr.json for Turkish Translation

* updated file for trLocale

* Updated for Turkish Locale

* Update i18n.ts

* Update i18n.ts

* Update package.json

* Update package.json

* Update i18n.d.ts

* Update user_setting.go

* Update package.json

* Update web/src/components/LocaleSelect.tsx

Co-authored-by: boojack <stevenlgtm@gmail.com>

* Update package.json

* Update LocaleSelect.tsx

* Update LocaleSelect.tsx

* Update i18n.ts

* Update i18n.ts

---------

Co-authored-by: boojack <stevenlgtm@gmail.com>
pull/1229/head
Mehmet Altuğ Akgül 2 years ago committed by GitHub
parent 1b0629bf0f
commit e062c9b4a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -36,7 +36,7 @@ func (key UserSettingKey) String() string {
} }
var ( var (
UserSettingLocaleValue = []string{"en", "zh", "vi", "fr", "nl", "sv", "de", "es", "uk", "ru", "it", "hant", "ko"} UserSettingLocaleValue = []string{"en", "zh", "vi", "fr", "nl", "sv", "de", "es", "uk", "ru", "it", "hant", "tr", "ko"}
UserSettingAppearanceValue = []string{"system", "light", "dark"} UserSettingAppearanceValue = []string{"system", "light", "dark"}
UserSettingMemoVisibilityValue = []Visibility{Private, Protected, Public} UserSettingMemoVisibilityValue = []Visibility{Private, Protected, Public}
UserSettingResourceVisibilityValue = []Visibility{Private, Protected, Public} UserSettingResourceVisibilityValue = []Visibility{Private, Protected, Public}

@ -3,7 +3,8 @@
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",
"build": "tsc && vite build", "build": "tsc && vite build",
"lint": "eslint --ext .js,.ts,.tsx, src" "lint": "eslint --ext .js,.ts,.tsx, src",
"lint-fix": "eslint --ext .js,.ts,.tsx, src --fix"
}, },
"dependencies": { "dependencies": {
"@emotion/react": "^11.10.5", "@emotion/react": "^11.10.5",

@ -34,6 +34,7 @@ const LocaleSelect: FC<Props> = (props: Props) => {
<Option value="ru">Русский</Option> <Option value="ru">Русский</Option>
<Option value="it">Italiano</Option> <Option value="it">Italiano</Option>
<Option value="hant"></Option> <Option value="hant"></Option>
<Option value="tr">Turkish</Option>
<Option value="ko"></Option> <Option value="ko"></Option>
</Select> </Select>
); );

@ -12,6 +12,7 @@ import ukLocale from "./locales/uk.json";
import ruLocale from "./locales/ru.json"; import ruLocale from "./locales/ru.json";
import itLocale from "./locales/it.json"; import itLocale from "./locales/it.json";
import hantLocale from "./locales/zh-Hant.json"; import hantLocale from "./locales/zh-Hant.json";
import trLocale from "./locales/tr.json";
import koLocale from "./locales/ko.json"; import koLocale from "./locales/ko.json";
i18n.use(initReactI18next).init({ i18n.use(initReactI18next).init({
@ -52,6 +53,9 @@ i18n.use(initReactI18next).init({
hant: { hant: {
translation: hantLocale, translation: hantLocale,
}, },
tr: {
translation: trLocale,
},
ko: { ko: {
translation: koLocale, translation: koLocale,
}, },

@ -1,271 +1,261 @@
{ {
"setting": { "common": {
"system-section": { "about": "Hakkında",
"additional-style-placeholder": "Additional CSS code", "email": "E-posta",
"additional-script-placeholder": "Additional JavaScript code", "password": "Parola",
"server-name": "Server Name", "repeat-password-short": "Tekrar",
"customize-server": { "repeat-password": "Parolayı tekrarlayın",
"title": "Customize Server", "new-password": "Yeni parola",
"default": "Default is memos", "repeat-new-password": "Yeni parolayı tekrarla",
"icon-url": "Icon URL" "username": "Kullanıcı adı",
}, "nickname": "Takma ad",
"database-file-size": "Database File Size", "save": "Kaydet",
"allow-user-signup": "Allow user signup", "close": "Kapat",
"disable-public-memos": "Disable public memos", "cancel": "İptal",
"additional-style": "Additional style", "create": "Oluştur",
"additional-script": "Additional script" "change": "Değiştir",
}, "confirm": "Onayla",
"apperance-option": { "reset": "Sıfırla",
"system": "Follow system", "language": "Dil",
"light": "Always light", "version": "Sürüm",
"dark": "Always dark" "pin": "Sabitle",
}, "unpin": "Sabitlemeyi kaldır",
"preference-section": { "edit": "Düzenle",
"enable-folding-memo": "Enable folding memo", "restore": "Geri yükle",
"theme": "Theme", "delete": "Sil",
"default-memo-visibility": "Default memo visibility", "null": "Boş",
"enable-double-click": "Enable double-click to edit", "share": "Paylaş",
"editor-font-style": "Editor font style", "archive": "Arşivle",
"mobile-editor-style": "Mobile editor style", "basic": "Temel",
"default-memo-sort-option": "Memo display time", "admin": "Yönetici",
"created_ts": "Created Time", "explore": "Daha çok keşfet",
"updated_ts": "Updated Time" "sign-in": "Giriş yap",
}, "sign-up": "Kaydol",
"my-account": "My Account", "sign-out": ıkış yap",
"preference": "Preferences", "back-to-home": "Ana sayfaya dön",
"member": "Member", "type": "Tip",
"member-list": "Member list", "shortcuts": "Kısayollar",
"system": "System", "title": "Başlık",
"storage": "Storage", "filter": "Filtre",
"sso": "SSO", "tags": "Etiketler",
"account-section": { "yourself": "Sen",
"title": "Account Information", "archived-at": "Arşivlendi"
"update-information": "Update Information", },
"change-password": "Change password" "slogan": "Açık kaynaklı bir not ve sosyalleşme platformu olan self-hosted.",
}, "auth": {
"storage-section": { "signup-as-host": "Sahip olarak kaydolun",
"storage-services-list": "Storage service list", "host-tip": "Site sahibi olarak kaydoluyorsunuz.",
"create-a-service": "Create a service", "not-host-tip": "Hesabınız yoksa, site sahibiyle iletişime geçin."
"update-a-service": "Update a service", },
"warning-text": "Are you sure to delete this storage service? THIS ACTION IS IRREVERSIBLE❗", "sidebar": {
"delete-storage": "Delete Storage" "daily-review": "Günlük İnceleme",
}, "resources": "Kaynaklar",
"member-section": { "setting": "Ayarlar",
"create-a-member": "Create a member" "archived": "Arşivlenmiş"
} },
}, "daily-review": {
"amount-text": { "oops-nothing": "Oops, burada hiçbir şey yok."
"memo_one": "MEMO", },
"memo_other": "MEMOS", "resources": {
"tag_one": "TAG", "description": "Memos'taki statik kaynaklarınızı (fotoğraflar) görüntüleyin",
"tag_other": "TAGS", "no-resources": "Kaynak yok.",
"day_one": "DAY", "fetching-data": "veriler yükleniyor...",
"day_other": "DAYS" "upload": "Yükle",
}, "preview": "Önizleme",
"message": { "copy-link": "Bağlantıyı kopyala",
"no-memos": "no memos 🌃", "delete-resource": "Kaynağı sil",
"memos-ready": "all memos are ready 🎉", "warning-text": "Bu kaynağı silmek istediğinize emin misiniz? BU İŞLEM GERİ ALINAMAZ❗",
"restored-successfully": "Restored successfully", "linked-amount": "Notların sayısı",
"invalid-created-datetime": "Invalid created datetime.", "rename": "Yeniden Adlandır",
"memo-updated-datetime": "Memo created datetime changed.", "warning-text-unused": "Kullanılmayan kaynakları silmek istediğinize emin misiniz? BU İŞLEM GERİ ALINAMAZ❗",
"change-memo-created-time": "Change memo created time", "no-unused-resources": "Kullanılmayan kaynak yok",
"memo-not-found": "Memo not found.", "name": "Ad",
"fill-all": "Please fill in all fields.", "clear": "Temizle"
"password-not-match": "Passwords do not match.", },
"new-password-not-match": "New passwords do not match.", "archived": {
"image-load-failed": "Image load failed", "archived-memos": "Arşivlenmiş Notlar",
"fill-form": "Please fill out this form", "no-archived-memos": "Arşivlenmiş not yok.",
"login-failed": "Login failed", "fetching-data": "veriler yükleniyor..."
"signup-failed": "Signup failed", },
"user-not-found": "User not found", "editor": {
"password-changed": "Password Changed", "editing": "Düzenleniyor...",
"private-only": "This memo is private only.", "cancel-edit": "İptal et",
"copied": "Copied", "save": "Kaydet",
"succeed-copy-content": "Content copied successfully.", "placeholder": "Düşünceleriniz...",
"succeed-copy-code": "Code copied successfully.", "only-image-supported": "Sadece resim dosyaları desteklenir.",
"succeed-copy-link": "Link copied successfully.", "cant-empty": "Metin boş olamaz",
"change-resource-filename": "Change resource filename", "local": "Bilgisayardan",
"resource-filename-updated": "Resource filename changed.", "resources": "Yüklenenler"
"invalid-resource-filename": "Invalid filename.", },
"click-to-save-the-image": "Click to save the image", "memo": {
"generating-the-screenshot": "Generating the screenshot...", "view-detail": "Detayları görüntüle",
"count-selected-resources": "Total selected", "copy": "Kopyala",
"too-short": "Too short", "visibility": {
"too-long": "Too long", "private": "Sadece sizin için görünür",
"not-allow-space": "Don't allow space", "protected": "Sadece kullanıcılara görünür",
"not-allow-chinese": "Don't allow chinese", "public": "Herkese açık",
"succeed-vacuum-database": "Succeed to vacuum database", "disabled": "Halka açık notlar devre dışı bırakıldı"
"succeed-update-additional-style": "Additional style updated successfully.", }
"succeed-copy-resource-link": "Resource link copied successfully.", },
"succeed-update-customized-profile": "Profile successfully customized.", "memo-list": {
"succeed-update-additional-script": "Additional script updated successfully.", "fetching-data": "Veriler yükleniyor...",
"update-succeed": "Update succeeded", "fetch-more": "Daha fazla yükle"
"page-not-found": "404 - Page Not Found 😥" },
}, "shortcut-list": {
"days": { "shortcut-title": "Kısayol adı",
"monday": "Monday", "create-shortcut": "Kısayol oluştur",
"mon": "Mon", "edit-shortcut": "Kısayolu düzenle",
"tuesday": "Tuesday", "eligible-memo": "İlgili notlar",
"tue": "Tue", "fill-previous": "Lütfen filtre değerini doldurun",
"wednesday": "Wednesday", "title-required": "Başlık gerekli",
"wed": "Wed", "value-required": "Filtre değeri gerekli"
"thursday": "Thursday", },
"thu": "Thu", "filter": {
"friday": "Friday", "new-filter": "Yeni filtre",
"fri": "Fri", "type": {
"saturday": "Saturday", "tag": "Etiket",
"sat": "Sat", "type": "Tip",
"sunday": "Sunday", "text": "Metin",
"sun": "Sun" "display-time": "Görüntüleme süresi",
}, "visibility": "Görünürlük"
"common": {
"close": "Kapat",
"about": "Hakkında",
"email": "Email",
"password": "Şifre",
"repeat-password-short": "Tekrar",
"repeat-password": "Şifre tekrarı",
"new-password": "Yeni şifre",
"repeat-new-password": "Yeni şifreyi tekrarla",
"avatar": "Avatar",
"username": "Kullanıcı adı",
"nickname": "Rumuz",
"save": "Kaydet",
"cancel": "İptal",
"create": "Oluştur",
"change": "Değiştir",
"confirm": "Onayla",
"reset": "Sıfırla",
"language": "Dil",
"version": "Versiyon",
"pin": "İğnele",
"edit": "Düzenle",
"restore": "Geri al",
"unpin": "İğnelemeyi kaldır",
"delete": "Sil",
"null": "Null",
"share": "Paylaş",
"archive": "Arşiv",
"basic": "Temel",
"admin": "Yönetici",
"explore": "Keşfet",
"sign-in": "Giriş yap",
"sign-up": "Kaydol",
"sign-out": ıkış yap",
"back-to-home": "Anasayfaya dön",
"type": "Type",
"shortcuts": "Kısayollar",
"title": "Başlık",
"filter": "Filtrele",
"tags": "Etiketler",
"yourself": "Kendin",
"archived-at": "Arşivlendi",
"changed": "değişti",
"update-on": "Güncellendi",
"fold": "Katla",
"expand": "Genişlet",
"image": "Görsel",
"link": "Link",
"vacuum": "Vacuum",
"select": "Select",
"database": "Database"
},
"slogan": "An open-source, self-hosted memo hub with knowledge management and social networking.",
"auth": {
"signup-as-host": "Sign up as Host",
"host-tip": "You are registering as the Site Host.",
"not-host-tip": "If you don't have an account, please contact the site host."
},
"sidebar": {
"daily-review": "Daily Review",
"resources": "Resources",
"setting": "Settings",
"archived": "Archived"
},
"daily-review": {
"oops-nothing": "Oops, there is nothing."
}, },
"resources": { "operator": {
"description": "View your static resources in memos. e.g. images", "contains": "İçerir",
"no-resources": "No resources.", "not-contains": "İçermez",
"fetching-data": "fetching data...", "is": "Eşittir",
"upload": "Upload", "is-not": "Eşit değildir",
"preview": "Preview", "before": "Öncesinde",
"copy-link": "Copy Link", "after": "Sonrasında"
"delete-resource": "Delete Resource",
"warning-text": "Are you sure to delete this resource? THIS ACTION IS IRREVERSIBLE❗",
"linked-amount": "Linked memo amount",
"rename": "Rename",
"clear": "Clear",
"warning-text-unused": "Are you sure to delete these unused resources? THIS ACTION IS IRREVERSIBLE❗",
"no-unused-resources": "No unused resources",
"name": "Name"
}, },
"archived": { "value": {
"archived-memos": "Archived Memos", "not-tagged": "Etiketlenmemiş",
"no-archived-memos": "No archived memos.", "linked": "Bağlantılı"
"fetching-data": "fetching data..."
}, },
"editor": { "text-placeholder": "Düzenli ifadeler kullanmak için ^ işaretini kullanın"
"editing": "Editing...", },
"cancel-edit": "Cancel edit", "tag-list": {
"save": "Save", "tip-text": "Oluşturmak için #etiket girin"
"placeholder": "Any thoughts...", },
"only-image-supported": "Only image file supported.", "search": {
"cant-empty": "Content can't be empty", "quickly-filter": "Hızlı filtre"
"local": "Local", },
"resources": "Resources" "setting": {
"my-account": "Hesabım",
"preference": "Tercihler",
"member": "Kullanıcılar",
"member-list": "Kullanıcı listesi",
"system": "Sistem",
"account-section": {
"title": "Hesap Bilgisi",
"update-information": "Bilgi Güncelleme",
"change-password": "Şifre Değiştirme"
}, },
"memo": { "preference-section": {
"view-detail": "View Detail", "theme": "Tema",
"copy": "Copy", "default-memo-visibility": "Varsayılan not görünürlüğü",
"visibility": { "enable-folding-memo": "Notları katlamayı etkinleştir",
"private": "Only visible to you", "editor-font-style": "Düzenleyici Yazı Stili",
"protected": "Visible to members", "mobile-editor-style": "Mobil Düzenleyici Stili",
"public": "Everyone can see", "default-memo-sort-option": "Yer İşareti Görüntüleme Zamanı",
"disabled": "Public memos are disabled" "created_ts": "Oluşturulma zamanı",
} "updated_ts": "Güncelleme zamanı",
"enable-double-click": "Düzenlemek için çift tıklatmayı etkinleştir"
}, },
"memo-list": { "member-section": {
"fetching-data": "fetching data...", "create-a-member": "Kullanıcı oluştur"
"fetch-more": "Click here to fetch more"
}, },
"shortcut-list": { "system-section": {
"shortcut-title": "shortcut title", "server-name": "Uygulama Adı",
"create-shortcut": "Create Shortcut", "customize-server": {
"edit-shortcut": "Edit Shortcut", "title": "Uygulamayı özelleştir",
"eligible-memo": "eligible memo", "default": "Varsayılan: memos",
"fill-previous": "Please fill in previous filter value", "icon-url": "İkon URL'si"
"title-required": "Title is required", },
"value-required": "Filter value is required" "database-file-size": "Veritabanı Dosya Boyutu",
"allow-user-signup": "Kullanıcı Kaydına İzin Ver",
"additional-style": "Özel Stiller",
"additional-script": "Özel Scriptler",
"additional-style-placeholder": "Ek CSS",
"additional-script-placeholder": "Ek JavaScript",
"disable-public-memos": "Halka açık notları devre dışı bırak"
}, },
"filter": { "apperance-option": {
"new-filter": "New Filter", "system": "Otomatik",
"type": { "light": "Her zaman açık renkli",
"tag": "Tag", "dark": "Her zaman koyu renkli"
"type": "Type",
"text": "Text",
"display-time": "Display Time",
"visibility": "Visibility"
},
"operator": {
"contains": "Contains",
"not-contains": "Does not contain",
"is": "Is",
"is-not": "Is Not",
"before": "Before",
"after": "After"
},
"value": {
"not-tagged": "No tags",
"linked": "Has links"
},
"text-placeholder": "Starts with ^ to use regex"
}, },
"tag-list": { "storage": "Depolama",
"tip-text": "Input `#tag` to create" "storage-section": {
"update-a-service": "Hizmeti güncelle",
"warning-text": "Bu depolama hizmetini silmek istediğinizden emin misiniz? BU İŞLEM GERİ ALINAMAZ❗",
"delete-storage": "Depolamayı Sil",
"storage-services-list": "Depolama hizmeti listesi",
"create-a-service": "Hizmet oluştur"
}, },
"search": { "sso": "SSO"
"quickly-filter": "Quickly filter" },
} "amount-text": {
"memo_one": "NOT",
"tag_one": "ETİKET",
"day_one": "GÜN",
"day_other": "GÜNLER",
"memo_other": "NOTLAR",
"tag_other": "ETİKETLER"
},
"message": {
"no-memos": "not yok 🌃",
"memos-ready": "daha fazla not yok 🎉",
"restored-successfully": "Başarıyla geri yüklendi.",
"memo-updated-datetime": "Oluşturma zamanı değiştirildi.",
"invalid-created-datetime": "Oluşturma zamanı geçersiz.",
"change-memo-created-time": "Not oluşturma zamanını değiştir",
"memo-not-found": "Not bulunamadı.",
"fill-all": "Lütfen tüm alanları doldurun.",
"password-not-match": "Parolalar eşleşmiyor.",
"new-password-not-match": "Yeni parolalar eşleşmiyor.",
"image-load-failed": "Resim yüklenemedi",
"fill-form": "Lütfen formu doldurun",
"login-failed": "Giriş başarısız",
"signup-failed": "Kayıt başarısız",
"user-not-found": "Kullanıcı bulunamadı",
"password-changed": "Şifre değiştirildi",
"private-only": "Bu not özel.",
"copied": "Kopyalandı",
"succeed-copy-content": "Metin panosuna metin kopyalandı.",
"succeed-copy-link": "Bağlantı panosuna bağlantı kopyalandı.",
"change-resource-filename": "Dosya adını değiştir",
"resource-filename-updated": "Dosya adı güncellendi.",
"invalid-resource-filename": "Geçersiz dosya adı.",
"click-to-save-the-image": "Kaydetmek için tıklayın",
"generating-the-screenshot": "Ekran görüntüsü oluşturuluyor...",
"count-selected-resources": "Toplam seçilen",
"too-short": "Çok kısa",
"too-long": "Çok uzun",
"not-allow-space": "Boşluk izin verilmez",
"not-allow-chinese": "Çince karakterler izin verilmez",
"succeed-vacuum-database": "DB vakumlandı",
"succeed-update-additional-style": "Stiller başarıyla eklendi",
"succeed-copy-resource-link": "Kaynak bağlantısı panosuna kopyalandı",
"succeed-update-customized-profile": "Özel profil başarıyla güncellendi",
"succeed-update-additional-script": "Ek scriptler başarıyla eklendi",
"update-succeed": "Başarıyla güncellendi",
"succeed-copy-code": "Kod panosuna kopyalandı",
"page-not-found": "404 - Sayfa Bulunamadı 😥"
},
"days": {
"monday": "Pazartesi",
"mon": "Paz",
"tuesday": "Salı",
"tue": "Sal",
"wednesday": "Çarşamba",
"wed": "Çar",
"thursday": "Perşembe",
"thu": "Per",
"friday": "Cuma",
"fri": "Cum",
"saturday": "Cumartesi",
"sat": "Cum",
"sunday": "Pazar",
"sun": "Paz"
}
} }

@ -1 +1 @@
type Locale = "en" | "zh" | "vi" | "fr" | "nl" | "sv" | "de" | "es" | "uk" | "ru" | "it" | "hant" | "ko"; type Locale = "en" | "zh" | "vi" | "fr" | "nl" | "sv" | "de" | "es" | "uk" | "ru" | "it" | "hant" | "tr" | "ko";

Loading…
Cancel
Save