gulp-angular-translate's People
Forkers
davej morriz eburi lotas 5im0n tombolaltd dumanbi okev manhg lukasz-karolewski kristianselnas passeidireto alirezamirian felipebarroscruz bl vkappiegulp-angular-translate's Issues
Version 0.1.3 does not work in Windows
In the source code: file.path.split('/')
This does not work in Windows where \\
is used as the path separator. Maybe using something like this: file.path.replace(/\\/g, '/').split('/')
Add 'fallback languages' feature
According to http://angular-translate.github.io/docs/#/guide/08_fallback-languages it would be useful feature an ability to add language fallback in the end of $translateProvider.translate(...) chain.
Module throws an error when attempting to load files with different names then expected ( like "tkey.json" )
Steps to reproduce:
- Create a gulp task.
- Create a JSON file with "tkey.json" name and save it.
- Point gulp.src at the file's location.
- Do not add any "options.language" configuration.
- Run the gulp task.
- Notice console.
Result:
Running the task will output an error:
TypeError: Cannot read property 'pop' of null
at <DIRECTORY PATH ...>\node_modules\gulp-angular-translate\index.js:11:130
.......
Additional notes:
Reported the bug in case others encounter the issue.
translations.js doesn't update string value
Hey,
I am facing a weird case, I am running the task to concat all the strings and a translations.js file, but for some reason when I update a string the value in translations.js still the old one, I have tried to delete the file with "del" without success.
When I change some value and concat again with task the values are updated.
It seems a kind of cache, any idea about this ?
Error: Cannot find module 'gulp-util'
Error: Cannot find module 'gulp-util'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (/home/repos/esl-html-mobile/node_modules/gulp-angular-translate/index.js:3:13)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
When installing through npm, the package.json is missing gulp-util as a dependency. The gulp task doesn't work without it.
When I add the dependency and run npm install again, it works.
"dependencies": {
"event-stream": "3.1.7",
"gulp-concat": "2.4.2",
"gulp-util": "3.0.1"
}
Make concatinating files optional
Could the concatination of the files be made optional? I'd like one angular-module-file for each language.
Example:
translation-en-US.json ==> translation-en-US.js
translation-de-DE.json ==> translation-de-DE.js
Exception is thrown if filenames are in a format like {locale}.something.json
I personally prefer to name my translation files like someName-{locale}.tr.json
instead of someName-{locale}.json
, (Which by the way I recommend to you too :D).
regex for file matching is restrictive
Your assumption that the naming translation files adhere to your standard is too restrictive.
You should allow "*/.json" to be globbed.
Want me to make a pull request?
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.