GithubHelp home page GithubHelp logo

Comments (4)

adrai avatar adrai commented on June 16, 2024

it will only work if the translations have been preloaded (all required namespaces)....
alternatively have a look at: https://www.i18next.com/how-to/caching
or: https://www.i18next.com/how-to/backend-fallback

from i18next.

FustaNivago avatar FustaNivago commented on June 16, 2024

it will only work if the translations have been preloaded (all required namespaces).... alternatively have a look at: https://www.i18next.com/how-to/caching or: https://www.i18next.com/how-to/backend-fallback

Thank you for the response. In my case I don't have any namespaces, there is only one json "file" which obviously has been loaded before any connection issues... I thought it should work offline. Regarding the cache - it is not an option for me, as the application is supposed to have an updates quite often.

from i18next.

adrai avatar adrai commented on June 16, 2024

If the translations are loaded there should be no additional request and the translations should work...
If that's not the case, please provide a minimal reproducible example.

from i18next.

FustaNivago avatar FustaNivago commented on June 16, 2024

Was unable to respond earlier.
My bad, the issue was in
import { t } from 'i18next';
I didn't notice missing useTranslation hook.
Thank you for your patience)

from i18next.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.