feat(i18n): add Romanian to i18n (#821)

This commit is contained in:
Silviu Lorenț
2024-02-07 18:26:45 +02:00
committed by GitHub
parent d2fb50b83c
commit ce413b4bae
2 changed files with 67 additions and 0 deletions

View File

@ -4,6 +4,7 @@ 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,
@ -11,6 +12,7 @@ export const TRANSLATIONS = {
"ja-JP": ja,
"de-DE": de,
"nl-NL": nl,
"ro-RO": ro,
} as const
export const i18n = (locale: ValidLocale): Translation => TRANSLATIONS[locale ?? "en-US"]