Skip to content

Translation without internet connection #1425

Discussion options

You must be logged in to vote

Incase someone still looking for a solution ("@tolgee/react": "6.0.0")

This is the implementation i managed to make it work if the app can not connect remotely (either Tolgee CDN is down, or offline usage of the current ReactApp.

import { FormatIcu } from '@tolgee/format-icu';
import { BackendFetch, DevTools, Tolgee } from '@tolgee/react';

const elTranslation = import('~/locales/el/translation.json');
const enTranslation = import('~/locales/en/translation.json');

const tolgeeApiUrl = process.env.REACT_APP_TOLGEE_API_URL;
const tolgeeApiKey = process.env.REACT_APP_TOLGEE_API_KEY;
const tolgeePrefixLink = process.env.REACT_APP_TOLGEE_CDN_PREFIX_LINK;
const systemDefaultLanguage = process.…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
5 replies
@phuongnguyenzoi
Comment options

@stepan662
Comment options

@phuongnguyenzoi
Comment options

@phuongnguyenzoi
Comment options

@stepan662
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by JanCizmar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants