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 { DevTools, Tolgee } from '@tolgee/react'
|
||||||
import { FormatIcu } from '@tolgee/format-icu'
|
import { FormatIcu } from '@tolgee/format-icu'
|
||||||
import en from '../i18n/en.json'
|
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 de from '../i18n/de.json'
|
||||||
import pt from '../i18n/pt.json'
|
//import pt from '../i18n/pt.json'
|
||||||
import ptBR from '../i18n/pt-BR.json'
|
//import ptBR from '../i18n/pt-BR.json'
|
||||||
import es from '../i18n/es.json'
|
//import es from '../i18n/es.json'
|
||||||
import ro from '../i18n/ro.json'
|
//import ro from '../i18n/ro.json'
|
||||||
import it from '../i18n/it.json'
|
//import it from '../i18n/it.json'
|
||||||
import el from '../i18n/el.json'
|
//import el from '../i18n/el.json'
|
||||||
import { env } from '@typebot.io/env'
|
import { env } from '@typebot.io/env'
|
||||||
|
|
||||||
|
//Sprache ein und ausblenden
|
||||||
export const tolgee = Tolgee()
|
export const tolgee = Tolgee()
|
||||||
.use(DevTools())
|
.use(DevTools())
|
||||||
.use(FormatIcu())
|
.use(FormatIcu())
|
||||||
.init({
|
.init({
|
||||||
apiKey: env.NEXT_PUBLIC_TOLGEE_API_KEY,
|
apiKey: env.NEXT_PUBLIC_TOLGEE_API_KEY,
|
||||||
apiUrl: env.NEXT_PUBLIC_TOLGEE_API_URL,
|
apiUrl: env.NEXT_PUBLIC_TOLGEE_API_URL,
|
||||||
defaultLanguage: 'en',
|
defaultLanguage: 'de',
|
||||||
availableLanguages: [
|
availableLanguages: [
|
||||||
'en',
|
'en',
|
||||||
'fr',
|
//'fr',
|
||||||
'de',
|
'de',
|
||||||
'pt',
|
//'pt',
|
||||||
'pt-BR',
|
//'pt-BR',
|
||||||
'es',
|
//'es',
|
||||||
'ro',
|
//'ro',
|
||||||
'it',
|
//'it',
|
||||||
'el',
|
//'el',
|
||||||
],
|
],
|
||||||
fallbackLanguage: 'en',
|
fallbackLanguage: 'en',
|
||||||
staticData: {
|
staticData: {
|
||||||
en,
|
en,
|
||||||
fr,
|
//fr,
|
||||||
de,
|
de,
|
||||||
pt,
|
//pt,
|
||||||
'pt-BR': ptBR,
|
//'pt-BR': ptBR,
|
||||||
es,
|
//es,
|
||||||
ro,
|
//ro,
|
||||||
it,
|
//it,
|
||||||
el,
|
//el,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user