it-ony / grunt-merge-locales Goto Github PK
View Code? Open in Web Editor NEWA grunt task for merging localized json files
License: MIT License
A grunt task for merging localized json files
License: MIT License
Hi,
In a living project it might happen that you have to change the meaning of an (already translated) item in the source. So you do the change in the source file (typically english). But the change does not propagate to already translated items.
It would be great if I could somehow "force" a retranslation, by marking some items (e.g. by prefixing the value with '???'). The so marked lines should then propagate to the target files:
By doing so, the translating persons have a marker (e.g. '???') to search for items that need a review. And the developer has a method to trigger a review by the translators.
Example:
en
{
"key1": "foo switches off something"
}
was already translated to
de {
"key1": "foo schaltet etwas aus"
}
Now the developer detected, that there was a mistake in the documentation and changes the meaning of the english text.
en
{
"key1": "foo switches ON something"
}
But this will not propagate to the translators as the text was already translated. The already translated meaning will not update -> Bad. If merge-locales detects the change in the english version, it could update the translated file.
de
{
"key1": "???(foo switches ON something)???foo schaltet etwas aus"
}
The guy translating the file searches for ??? and can identify the items to review.
By the way: You could also prefixing "untranslated" or "new" items with '???' - this will also help translators to identify lines that need translation easily (so they don't need to scan big file from the beginning and look for a different language in all the text manually - which is error prone and annoying)
kind regards
Andreas
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.