Comments (4)
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.
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.
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.
from json-autotranslate.
Related Issues (20)
- Ability to specify custom matchers
- Add OpenAI GPT support
- i18next matcher fails when parsing an Array HOT 5
- Readme Issues HOT 3
- Issue with Inaccurate Caching Behavior in json-autotranslate Across Multiple Directories HOT 2
- Can't create new language HOT 1
- Use glossary with DeepL HOT 2
- Cache mixes up different directories
- Throws error with double-brackets "{{" "}}" in json HOT 3
- How to pass Google Translate API key in --config HOT 3
- Rate Limit Exceeded HOT 1
- ICU Plurals Support fix HOT 2
- Stop automatically updating translations HOT 6
- Use custom terminology from Amazon Translate HOT 1
- Please add license file HOT 1
- How to handle input keys with "." in names HOT 2
- Better ICU handling
- ngx-translate structure not translating
- What are inconsistencies? HOT 6
- Wrong output structure HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from json-autotranslate.