Skip to content

Commit

Permalink
Merge pull request #328 from LeaveNhA/main
Browse files Browse the repository at this point in the history
Turkish translations.
  • Loading branch information
sprout2000 committed Mar 9, 2023
2 parents fef05f7 + d295e37 commit e576bef
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ winget install sprout2000.LeafView
| اللغة العربية | `ar` | | Français | `fr` | | Русский | `ru` |
| Čeština | `cs` | | Magyar | `hu` | | 简体中文 | `zh_CN` |
| Deutsch | `de` | | 日本語 | `ja` | | 繁体中文 | `zh_TW` |
| English | `en` | | Polski | `pl` | |
| English | `en` | | Polski | `pl` | | Turkish | `tr`
| Español | `es` | | Português | `pt` | |

## :beers: Contributing
Expand Down
32 changes: 32 additions & 0 deletions src/locales/tr_tr.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"File": "Dosya",
"Open...": "Aç...",
"Select an image": "Bir görüntü seçin",
"Image files": "Görüntü dosyaları",
"Move to Trash": "Çöp kutusuna taşı",
"View": "Görünüm",
"Next Image": "Sonraki Görüntü",
"Prev Image": "Önceki Görüntü",
"Toggle Grid View": "Izgara Görünümünü Aç/Kapat",
"Toggle Fullscreen": "Tam Ekran Görünümü Aç/Kapat",
"Toggle Developer Tools": "Geliştirici Araçlarını Aç/Kapat",
"Toggle Menubar": "Menü Çubuğunu Aç/Kapat",
"Toggle Dark Mode": "Karanlık Modu Aç/Kapat",
"Window": "Pencere",
"Minimize": "Simge Durumuna Küçült",
"Maximize": "Tam Ekran Yap",
"Zoom": "Yakınlaştır",
"Bring All to Front": "Tümünü Öne Getir",
"Close": "Kapat",
"Help": "Yardım",
"About": "Hakkında",
"About LeafView": "LeafView Hakkında",
"Support URL...": "Destek URL'si...",
"Hide LeafView": "LeafView'u Gizle",
"Hide Others": "Diğerlerini Gizle",
"Show All": "Tümünü Göster",
"Quit": "Çıkış",
"Quit LeafView": "LeafView'dan Çık",
"Language": "Dil",
"Warning": "Dili değiştirmek için LeafView'ı yeniden başlatın."
}
3 changes: 3 additions & 0 deletions src/setLocales.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import pt from './locales/pt.json'; // https://github.com/sprout2000/leafview/pu
import ru from './locales/ru.json'; // https://github.com/sprout2000/leafview/pull/215 by kitt3911
import zh_CN from './locales/zh_cn.json'; // https://github.com/sprout2000/leafview/pull/235 by ArcherGu
import zh_TW from './locales/zh_tw.json';
import tr_TR from './locales/tr_tr.json'; // by LeaveNhA

export const setLocales = (locale: string) => {
i18next.init({
Expand Down Expand Up @@ -62,6 +63,8 @@ export const setLocales = (locale: string) => {
zh: { translation: zh_CN },
'zh-CN': { translation: zh_CN },
'zh-TW': { translation: zh_TW },
tr: { translation: tr_TR },
'tr-tr': { translation: tr_TR },
},
});
};

0 comments on commit e576bef

Please sign in to comment.