Skip to content
Merged
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
2 changes: 2 additions & 0 deletions .github/workflows/push-base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
required: true
type: string

# cspell:ignore snok rlespinasse

jobs:
build:
name: Build
Expand Down
1 change: 1 addition & 0 deletions cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
// words - list of words to be always considered correct
"words": [
"cfworker",
"chainer",
"Deantendo",
"felte",
"fenv",
Expand Down
1 change: 1 addition & 0 deletions src/lib/components/general/TranslationDropdown.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

const defaultFlagTextStyle = 'text-white';

// Be sure to also update /routes/+layout.svelte when adding entries here
// cspell:disable
const languages: Record<string, language> = {
en: {
Expand Down
17 changes: 14 additions & 3 deletions src/routes/+layout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,18 @@ 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 deCommon from '../i18n/common/de.json';
import enCommon from '../i18n/common/en.json';
import frCommon from '../i18n/common/fr.json';
import deCommon from '../i18n/common/de.json';
import esCommon from '../i18n/common/es.json';
import huCommon from '../i18n/common/hu.json';
import itCommon from '../i18n/common/it.json';
import koCommon from '../i18n/common/ko.json';
import frCommon from '../i18n/common/fr.json';
import lvCommon from '../i18n/common/lv.json';
import mtCommon from '../i18n/common/mt.json';
import nlCommon from '../i18n/common/nl.json';
import ptBrCommon from '../i18n/common/pt-BR.json';
import plCommon from '../i18n/common/pl.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 @@ -35,14 +40,20 @@ export const load: LayoutLoad = async ({ fetch }) => {
apiUrl: browser ? PUBLIC_TOLGEE_API_URL : undefined,
apiKey: browser ? PUBLIC_TOLGEE_API_KEY : undefined,

// Be sure to also update TranslationDropdown.svelte when adding entries here
staticData: {
'de:common': deCommon,
'en:common': enCommon,
'de:common': deCommon,
'es:common': esCommon,
'fr:common': frCommon,
'hu:common': huCommon,
'it:common': itCommon,
'ko:common': koCommon,
'lv:common': lvCommon,
'mt:common': mtCommon,
'nl:common': nlCommon,
'pt-BR:common': ptBrCommon,
'pl:common': plCommon,
'ru:common': ruCommon,
'zh-Hans:common': zhHansCommon,
'zh-Hant:common': zhHantCommon
Expand Down
Loading