2
0

🌐 Add es and ro support

This commit is contained in:
Baptiste Arnaud
2023-11-19 08:52:59 +01:00
parent 1e64a73e54
commit f6ac3891f8
10 changed files with 529 additions and 10 deletions

View File

@@ -25,6 +25,8 @@ const localeHumanReadable = {
de: 'Deutsch',
pt: 'Português',
'pt-BR': 'Português (BR)',
ro: 'Română',
es: 'Español',
} as const
export const UserPreferencesForm = () => {

View File

@@ -5,6 +5,8 @@ import fr from '../../public/locales/fr.json'
import de from '../../public/locales/de.json'
import pt from '../../public/locales/pt.json'
import ptBR from '../../public/locales/pt-BR.json'
import es from '../../public/locales/es.json'
import ro from '../../public/locales/ro.json'
import { env } from '@typebot.io/env'
export const tolgee = Tolgee()
@@ -14,7 +16,7 @@ export const tolgee = Tolgee()
apiKey: env.NEXT_PUBLIC_TOLGEE_API_KEY,
apiUrl: env.NEXT_PUBLIC_TOLGEE_API_URL,
defaultLanguage: 'en',
availableLanguages: ['en', 'fr', 'de', 'pt', 'pt-BR'],
availableLanguages: ['en', 'fr', 'de', 'pt', 'pt-BR', 'es', 'ro'],
fallbackLanguage: 'en',
staticData: {
en,
@@ -22,5 +24,7 @@ export const tolgee = Tolgee()
de,
pt,
'pt-BR': ptBR,
es,
ro,
},
})