Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Includes Turkish translation support #1794

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions src/renderer/i18n/index.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
import i18n from 'i18next'
import { initReactI18next } from 'react-i18next'

import de from './locales/de/translation.json'
import en from './locales/en/translation.json'
import zhHans from './locales/zh-Hans/translation.json'
import zhHant from './locales/zh-Hant/translation.json'
import fr from './locales/fr/translation.json'
import ja from './locales/ja/translation.json'
import ko from './locales/ko/translation.json'
import ru from './locales/ru/translation.json'
import de from './locales/de/translation.json'
import fr from './locales/fr/translation.json'
import tr from './locales/tr/translation.json'
import zhHans from './locales/zh-Hans/translation.json'
import zhHant from './locales/zh-Hant/translation.json'

import changelogEn from './changelogs/changelog_en'
import changelogZhHans from './changelogs/changelog_zh_Hans'
import changelogZhHant from './changelogs/changelog_zh_Hant'
import changelogEn from './changelogs/changelog_en'

i18n.use(initReactI18next).init({
resources: {
Expand Down Expand Up @@ -40,6 +41,9 @@ i18n.use(initReactI18next).init({
fr: {
translation: fr,
},
tr: {
translation: tr,
},
},
fallbackLng: 'en',

Expand Down
1 change: 1 addition & 0 deletions src/renderer/i18n/locales.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export const languageNameMap = {
ru: 'Русский', // Russian
de: 'Deutsch', // German
fr: 'Français', // French
tr: 'Türkçe',
}

export const languages = Array.from(Object.keys(languageNameMap)) as Language[]
Loading