Skip to content

Commit 0ff5f80

Browse files
committed
πŸ› Typo
1 parent 6b53fe6 commit 0ff5f80

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

β€Žsrc/lib/docs/docs.tsβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ import type { Component } from 'svelte'
33
const MODULES = import.meta.glob('/src/docs/**/*.md')
44

55
export const DEFAULT_LANGUAGE = 'en'
6-
export const SUPPORTED_LANGAUGES = ['de', 'en', 'nl', 'ru', 'uk', 'zh-cn']
6+
export const SUPPORTED_LANGUAGES = ['de', 'en', 'nl', 'ru', 'uk', 'zh-cn']
77

88
export function getDocModule(lang = 'en', path: string) {
9-
const normalizedLang = SUPPORTED_LANGAUGES.includes(lang) ? lang : DEFAULT_LANGUAGE
9+
const normalizedLang = SUPPORTED_LANGUAGES.includes(lang) ? lang : DEFAULT_LANGUAGE
1010
const key = `/src/docs/${path}/${normalizedLang}.md`
1111

1212
const mod = MODULES[key] ?? MODULES[`/src/docs/${path}/${DEFAULT_LANGUAGE}.md`]
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { SUPPORTED_LANGAUGES } from '$lib/docs/docs'
1+
import { SUPPORTED_LANGUAGES } from '$lib/docs/docs'
22
import type { EntryGenerator } from './$types'
33

44
export const entries: EntryGenerator = () => {
5-
return SUPPORTED_LANGAUGES.map(lang => ({ lang }))
5+
return SUPPORTED_LANGUAGES.map(lang => ({ lang }))
66
}

β€Žsrc/routes/[[lang]]/docs/[...path]/+page.tsβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { DEFAULT_LANGUAGE, getDocModule, SUPPORTED_LANGAUGES } from '$lib/docs/docs'
1+
import { DEFAULT_LANGUAGE, getDocModule, SUPPORTED_LANGUAGES } from '$lib/docs/docs'
22
import { error } from '@sveltejs/kit'
33
import type { PageLoad } from '../$types'
44
import type { EntryGenerator } from './$types'
@@ -18,7 +18,7 @@ export const entries: EntryGenerator = () => {
1818

1919
return paths.flatMap(path => [
2020
{ lang: undefined, path },
21-
...SUPPORTED_LANGAUGES.map(lang => ({ lang, path })),
21+
...SUPPORTED_LANGUAGES.map(lang => ({ lang, path })),
2222
])
2323
}
2424

0 commit comments

Comments
Β (0)