Giter VIP home page Giter VIP logo

Comments (14)

adrai avatar adrai commented on May 25, 2024

i18next has a debug: true option

from i18next-http-backend.

franck34 avatar franck34 commented on May 25, 2024

the debug: true option does not notify about a problem with json files

from i18next-http-backend.

franck34 avatar franck34 commented on May 25, 2024

I can PR if you want ;)

from i18next-http-backend.

adrai avatar adrai commented on May 25, 2024

Can you show your console output when having debug: true?
There should be something like:
image

from i18next-http-backend.

franck34 avatar franck34 commented on May 25, 2024

I'm using the latest version of i18next and i don't have the message you just show me.

Below a non working case (my french language got a missing coma)

i18next::backendConnector: loaded namespace login for language en {messages: {…}}
i18next.min.js:1 i18next: languageChanged fr

Now, let's add the missing coma

i18next::backendConnector: loaded namespace login for language fr {messages: {…}}
i18next::backendConnector: loaded namespace login for language en {messages: {…}}
i18next.min.js:1 i18next: languageChanged fr

Nothing say about a parsing problem on my side.

from i18next-http-backend.

adrai avatar adrai commented on May 25, 2024

Can you please create a codesandbox example?

from i18next-http-backend.

franck34 avatar franck34 commented on May 25, 2024

Interesting, i'm reading your code, you already implement that (line 200). But it does not show in the console with debug:true in i18next options.

For codesandox, i need some times. My application is on my laptop, not on this internet. Or, we can make a quick meeting (teamviewer) so you can have directly access to my computer. as you want.

from i18next-http-backend.

franck34 avatar franck34 commented on May 25, 2024

Well, give me sometimes so i can publish my app on my public server

from i18next-http-backend.

franck34 avatar franck34 commented on May 25, 2024

App published, bug reproduced, but i don't want to put informations here. Is there a way to speak with you in private ? irc, slack ... thank you

from i18next-http-backend.

adrai avatar adrai commented on May 25, 2024

It would be nice to have a reproducable example, like: https://codesandbox.io/s/blissful-tu-siy6i?file=/src/i18n.js

from i18next-http-backend.

franck34 avatar franck34 commented on May 25, 2024

Ha, i misunderstood regading codesandbox.

So, https://codesandbox.io/s/wizardly-tree-x1ghd

Missing coma in english file doesn't show a particular warning in the console.

from i18next-http-backend.

franck34 avatar franck34 commented on May 25, 2024

Working on a minimal pure js case, please wait

from i18next-http-backend.

adrai avatar adrai commented on May 25, 2024

I see this:
image

from i18next-http-backend.

franck34 avatar franck34 commented on May 25, 2024

Yep. Got it.

In the chrome console, i set a custom log level because was tired of warnings, before make my mistake (missing coma).

I forget it. With defaults log level, i can see the warning.

Sorry for losing time man. Closing this ticket. Working on the second one

from i18next-http-backend.

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.