Skip to content

Commit 8eae7a3

Browse files
authored
fix: some translations still displaying english data (#216)
1 parent a7c3d80 commit 8eae7a3

File tree

4 files changed

+18
-3
lines changed

4 files changed

+18
-3
lines changed

.github/workflows/push-base.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77
required: true
88
type: string
99

10+
# cspell:ignore snok rlespinasse
11+
1012
jobs:
1113
build:
1214
name: Build

cspell.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
// words - list of words to be always considered correct
88
"words": [
99
"cfworker",
10+
"chainer",
1011
"Deantendo",
1112
"felte",
1213
"fenv",

src/lib/components/general/TranslationDropdown.svelte

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
1717
const defaultFlagTextStyle = 'text-white';
1818
19+
// Be sure to also update /routes/+layout.svelte when adding entries here
1920
// cspell:disable
2021
const languages: Record<string, language> = {
2122
en: {

src/routes/+layout.ts

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,18 @@ import { DevTools, FormatSimple, LanguageDetector, Tolgee } from '@tolgee/svelte
44
import { browser } from '$app/environment';
55
import { PUBLIC_TOLGEE_API_KEY, PUBLIC_TOLGEE_API_URL } from '$env/static/public';
66

7-
import deCommon from '../i18n/common/de.json';
87
import enCommon from '../i18n/common/en.json';
9-
import frCommon from '../i18n/common/fr.json';
8+
import deCommon from '../i18n/common/de.json';
9+
import esCommon from '../i18n/common/es.json';
10+
import huCommon from '../i18n/common/hu.json';
1011
import itCommon from '../i18n/common/it.json';
12+
import koCommon from '../i18n/common/ko.json';
13+
import frCommon from '../i18n/common/fr.json';
1114
import lvCommon from '../i18n/common/lv.json';
1215
import mtCommon from '../i18n/common/mt.json';
1316
import nlCommon from '../i18n/common/nl.json';
17+
import ptBrCommon from '../i18n/common/pt-BR.json';
18+
import plCommon from '../i18n/common/pl.json';
1419
import ruCommon from '../i18n/common/ru.json';
1520
import zhHansCommon from '../i18n/common/zh-Hans.json';
1621
import zhHantCommon from '../i18n/common/zh-Hant.json';
@@ -35,14 +40,20 @@ export const load: LayoutLoad = async ({ fetch }) => {
3540
apiUrl: browser ? PUBLIC_TOLGEE_API_URL : undefined,
3641
apiKey: browser ? PUBLIC_TOLGEE_API_KEY : undefined,
3742

43+
// Be sure to also update TranslationDropdown.svelte when adding entries here
3844
staticData: {
39-
'de:common': deCommon,
4045
'en:common': enCommon,
46+
'de:common': deCommon,
47+
'es:common': esCommon,
4148
'fr:common': frCommon,
49+
'hu:common': huCommon,
4250
'it:common': itCommon,
51+
'ko:common': koCommon,
4352
'lv:common': lvCommon,
4453
'mt:common': mtCommon,
4554
'nl:common': nlCommon,
55+
'pt-BR:common': ptBrCommon,
56+
'pl:common': plCommon,
4657
'ru:common': ruCommon,
4758
'zh-Hans:common': zhHansCommon,
4859
'zh-Hant:common': zhHantCommon

0 commit comments

Comments
 (0)