deaktivieren nicht benötigter Sprachen
Some checks are pending
Create Tag / create-tag (push) Waiting to run
Some checks are pending
Create Tag / create-tag (push) Waiting to run
This commit is contained in:
@ -1,44 +1,45 @@
|
||||
import { DevTools, Tolgee } from '@tolgee/react'
|
||||
import { FormatIcu } from '@tolgee/format-icu'
|
||||
import en from '../i18n/en.json'
|
||||
import fr from '../i18n/fr.json'
|
||||
//import fr from '../i18n/fr.json'
|
||||
import de from '../i18n/de.json'
|
||||
import pt from '../i18n/pt.json'
|
||||
import ptBR from '../i18n/pt-BR.json'
|
||||
import es from '../i18n/es.json'
|
||||
import ro from '../i18n/ro.json'
|
||||
import it from '../i18n/it.json'
|
||||
import el from '../i18n/el.json'
|
||||
//import pt from '../i18n/pt.json'
|
||||
//import ptBR from '../i18n/pt-BR.json'
|
||||
//import es from '../i18n/es.json'
|
||||
//import ro from '../i18n/ro.json'
|
||||
//import it from '../i18n/it.json'
|
||||
//import el from '../i18n/el.json'
|
||||
import { env } from '@typebot.io/env'
|
||||
|
||||
//Sprache ein und ausblenden
|
||||
export const tolgee = Tolgee()
|
||||
.use(DevTools())
|
||||
.use(FormatIcu())
|
||||
.init({
|
||||
apiKey: env.NEXT_PUBLIC_TOLGEE_API_KEY,
|
||||
apiUrl: env.NEXT_PUBLIC_TOLGEE_API_URL,
|
||||
defaultLanguage: 'en',
|
||||
defaultLanguage: 'de',
|
||||
availableLanguages: [
|
||||
'en',
|
||||
'fr',
|
||||
//'fr',
|
||||
'de',
|
||||
'pt',
|
||||
'pt-BR',
|
||||
'es',
|
||||
'ro',
|
||||
'it',
|
||||
'el',
|
||||
//'pt',
|
||||
//'pt-BR',
|
||||
//'es',
|
||||
//'ro',
|
||||
//'it',
|
||||
//'el',
|
||||
],
|
||||
fallbackLanguage: 'en',
|
||||
staticData: {
|
||||
en,
|
||||
fr,
|
||||
//fr,
|
||||
de,
|
||||
pt,
|
||||
'pt-BR': ptBR,
|
||||
es,
|
||||
ro,
|
||||
it,
|
||||
el,
|
||||
//pt,
|
||||
//'pt-BR': ptBR,
|
||||
//es,
|
||||
//ro,
|
||||
//it,
|
||||
//el,
|
||||
},
|
||||
})
|
||||
|
Reference in New Issue
Block a user