add Spanish translations (#822)

* add Spanish translations

* format with prettier

* clears npm ci, formatted w/ prettier
This commit is contained in:
Miguel Pimentel
2024-02-07 09:57:14 -08:00
committed by GitHub
parent 2578597f7e
commit ca284778b2
2 changed files with 67 additions and 0 deletions

View File

@ -5,6 +5,7 @@ import ja from "./locales/ja-JP"
import de from "./locales/de-DE"
import nl from "./locales/nl-NL"
import ro from "./locales/ro-RO"
import es from "./locales/es-ES"
export const TRANSLATIONS = {
"en-US": en,
@ -13,6 +14,7 @@ export const TRANSLATIONS = {
"de-DE": de,
"nl-NL": nl,
"ro-RO": ro,
"es-ES": es,
} as const
export const i18n = (locale: ValidLocale): Translation => TRANSLATIONS[locale ?? "en-US"]