i18n-polyfill
i18n-polyfill copied to clipboard
Change docs for glob parameter
This might be an issue with operating system (Mac OS Sierra 10.12.6), npm (5.6.0) or any other thing, or it might be an issue for everyone, but:
When I follow the example code and submit a glob as parameter -i src//.ts, the filenames are unpacked and apparently submitted as an array to the extractor. The globstar path is not respected and I am only scanning the toplevel folder (src//*.ts). By submitting the glob-pattern within a string ('src//*.ts) this is avoided. The unwrapped parameter is working for me in the example project because averything is nested 1 level deep.
The example project and documentations should probably use a glob parameter wrapped in a string
Maybe this is a duplicate of #2
I am having a similar issue.
Under windows using git bash there is no globstar. So even when I wrap it in a string it only enters the first subdirectory.
To extract all translations I have to pass all directories and their subdirectories to the --input
option.
For every module/component which kind of sucks.
Example:
ngx-extractor \
-i src/app/*.ts \
-i src/app/auth/**/*.ts \
-i src/app/auth/*.ts \
-i src/app/core/*.ts \
-i src/app/core/**/*.ts \
-i src/app/posts-module/*.ts \
-i src/app/posts-module/**/*.ts \
-f xlf \
-o src/locale/messages.xlf \
-l en