feat: add German language support (#207)

* feat: add German language support

* fix: translate other locale names to German

* chore: integrate recommendations from the PR review

* i18n: add translation recommendations from the PR

* Fix translations

---------

Co-authored-by: Christian Schuller <christianschuller.biz@gmail.com>
Co-authored-by: Sebastien Castiel <sebastien@castiel.me>
This commit is contained in:
chrisschuller
2024-09-29 00:11:30 +02:00
committed by GitHub
parent 345f3716c9
commit 504631454a
5 changed files with 399 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
import { getRequestConfig } from 'next-intl/server'
import { getUserLocale } from './lib/locale'
export const locales = ['en-US', 'fi', 'fr-FR', 'es'] as const
export const locales = ['en-US', 'fi', 'fr-FR', 'es', 'de-DE'] as const
export type Locale = (typeof locales)[number]
export type Locales = ReadonlyArray<Locale>
export const defaultLocale: Locale = 'en-US'