Skip to content

Commit

Permalink
feat: add italian, dutch, russian translations
Browse files Browse the repository at this point in the history
  • Loading branch information
Vilsol committed Nov 22, 2023
1 parent c68f481 commit 7fe60ae
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
12 changes: 12 additions & 0 deletions src/lib/components/general/TranslationDropdown.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@
name: 'Français',
flag: '🇫🇷'
},
it: {
name: 'Italiano',
flag: '🇮🇹'
},
lv: {
name: 'Latviešu',
flag: '🇱🇻'
Expand All @@ -29,6 +33,14 @@
name: 'Malti',
flag: '🇲🇹'
},
nl: {
name: 'Nederlands',
flag: '🇳🇱'
},
ru: {
name: 'Pусский',
flag: '🇷🇺'
},
'zh-Hans': {
name: '简体中文',
flag: '🇨🇳'
Expand Down
10 changes: 8 additions & 2 deletions src/routes/+layout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,14 @@ import { DevTools, FormatSimple, LanguageDetector, Tolgee } from '@tolgee/svelte
import { browser } from '$app/environment';
import { PUBLIC_TOLGEE_API_KEY, PUBLIC_TOLGEE_API_URL } from '$env/static/public';

import enCommon from '../i18n/common/en.json';
import deCommon from '../i18n/common/de.json';
import enCommon from '../i18n/common/en.json';
import frCommon from '../i18n/common/fr.json';
import itCommon from '../i18n/common/it.json';
import lvCommon from '../i18n/common/lv.json';
import mtCommon from '../i18n/common/mt.json';
import nlCommon from '../i18n/common/nl.json';
import ruCommon from '../i18n/common/ru.json';
import zhHansCommon from '../i18n/common/zh-Hans.json';
import zhHantCommon from '../i18n/common/zh-Hant.json';

Expand All @@ -33,11 +36,14 @@ export const load: LayoutLoad = async ({ fetch }) => {
apiKey: browser ? PUBLIC_TOLGEE_API_KEY : undefined,

staticData: {
'en:common': enCommon,
'de:common': deCommon,
'en:common': enCommon,
'fr:common': frCommon,
'it:common': itCommon,
'lv:common': lvCommon,
'mt:common': mtCommon,
'nl:common': nlCommon,
'ru:common': ruCommon,
'zh-Hans:common': zhHansCommon,
'zh-Hant:common': zhHantCommon
}
Expand Down

0 comments on commit 7fe60ae

Please sign in to comment.