feature: add Spanish language support (#214)

* create ES i18n json

* add ES locale to i18n and existing locales

* capitalize words at es.json

* Add missing translation

---------

Co-authored-by: Sebastien Castiel <sebastien@castiel.me>
This commit is contained in:
Pau Sansa
2024-09-29 00:06:15 +02:00
committed by GitHub
parent 5fff8da08d
commit 345f3716c9
5 changed files with 402 additions and 6 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'] as const
export const locales = ['en-US', 'fi', 'fr-FR', 'es'] as const
export type Locale = (typeof locales)[number]
export type Locales = ReadonlyArray<Locale>
export const defaultLocale: Locale = 'en-US'