mirror of
https://gitlab.com/MisterBiggs/brain-quartz.git
synced 2025-08-21 21:04:54 +00:00
.github
content
docs
quartz
cli
components
i18n
locales
index.ts
plugins
processors
static
styles
util
bootstrap-cli.mjs
bootstrap-worker.mjs
build.ts
cfg.ts
worker.ts
.gitattributes
.gitignore
.npmrc
.prettierignore
.prettierrc
CODE_OF_CONDUCT.md
Dockerfile
LICENSE.txt
README.md
globals.d.ts
index.d.ts
package-lock.json
package.json
quartz.config.ts
quartz.layout.ts
tsconfig.json
20 lines
524 B
TypeScript
20 lines
524 B
TypeScript
import { Translation } from "./locales/definition"
|
|
import en from "./locales/en-US"
|
|
import fr from "./locales/fr-FR"
|
|
import ja from "./locales/ja-JP"
|
|
import de from "./locales/de-DE"
|
|
import nl from "./locales/nl-NL"
|
|
import ro from "./locales/ro-RO"
|
|
|
|
export const TRANSLATIONS = {
|
|
"en-US": en,
|
|
"fr-FR": fr,
|
|
"ja-JP": ja,
|
|
"de-DE": de,
|
|
"nl-NL": nl,
|
|
"ro-RO": ro,
|
|
} as const
|
|
|
|
export const i18n = (locale: ValidLocale): Translation => TRANSLATIONS[locale ?? "en-US"]
|
|
export type ValidLocale = keyof typeof TRANSLATIONS
|