Giter Club home page Giter Club logo

Comments (4)

leolabs avatar leolabs commented on September 13, 2024

Hey @petrchutny,

thanks for your bug report! Could you tell me which i18n library or syntax you're using your JSON files for?

Colons are not supported by ICU, the default syntax that json-autotranslate uses for matching those variables. That's the reason you're getting the error message.

The matching is necessary for json-autotranslate to replace those fields with placeholders that don't get translated by Google or DeepL.

from json-autotranslate.

petrchutny avatar petrchutny commented on September 13, 2024

Hi,

thanks for replying. We don't use any particular I18N syntax, it's our own.
As I look at the code now, I see this record: "LABEL_SEQUENCE_STEP": "Step value: {step}",, which makes me wonder why there was a colon in the middle of curly brackets before. Maybe I have somehow generated that string wrong, or it's not meant to be like this. I will verify if it works OK when my VPN works, and then update you here.

from json-autotranslate.

leolabs avatar leolabs commented on September 13, 2024

Alright, tell me if that solves the problem :)

If you absolutely need colons or other special characters in your translation, you can easily write your own matcher. See the i18next matcher for a simple example.

from json-autotranslate.

petrchutny avatar petrchutny commented on September 13, 2024

from json-autotranslate.

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.