Comments (3)
Ah i guess that's why the add functionality is not working?
The following lists all unused and all not yet included annotations perfectly but does not add missing keys to the translation json files (version 1.0.3):
vue-i18n-extract report -v './src/modules/**/*.?(js|vue)' -l './src/locales/*.?(js|json)' -a true
from vue-i18n-extract.
Hello!
I've just finished up a PR #70 to address this issue and extend the -a
functionality to include not only JSON
files but also JS
and Yaml
. It will be merged and released soon.
from vue-i18n-extract.
@Spittal is there any requirement to have the -a / --add working?
I got the report, but even with the --add flag I don't have the missing string added to my json.
Here is my command (on windows (tried it as simple user and as administrator) :
npx vue-cli-service i18n:report --src "./src/**/*.?(vue)" --locales "./src/locales/**/*.json" -a
I'm in V1.1.10
from vue-i18n-extract.
Related Issues (20)
- does not seem to support i18n custom block in SFC
- Linked messages are incorrectly reported as unused
- language is not detected if it's a part of a path instead of the filename
- Dynamic keypath are not ignored as path in <i18n-t>
- Security upgrade dot-object from 2.1.2 to 2.1.3 HOT 1
- nuxt format app.i18n.t('xxx') isn't supported
- CACError: Unknown option `--emptyTranslation=en`
- Support for Single File Components
- Support translations array using dot notation
- Unreleased changes
- Does not actually remove keys HOT 18
- add support for ignoring .gitignore entries automatically HOT 3
- A way to only scan for the keys, without $t/v-t prefixes
- Incorrect 'module' in package.json
- When will new versions be released to the npm repository?
- Parse . (dot) the end of the sentence with dot notation HOT 1
- CLI Option "unknown": missingTranslationString HOT 1
- [vue-i18n-extract] SyntaxError: Unexpected token 'export'
- Can you provide additional show console options to createI18NReport? HOT 1
- Question: Does this work with vue 3 composition api? 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 vue-i18n-extract.