Starting a localization process for one of projects. Currently looking for localization of backbone and underscore parts. i18n plugin from require.js seems to do almost all that I need, but... there is a strange feeling that everything is too simple... Looking around on the web found some frameworks, projects but they don't offer anything that I can not get with a plain and simple require.js i18n... Strange... Someone passed through same feeling before? What was the result? :)
Friday, September 26, 2014
backbone.js + underscore.js + ??? = good localization
Posted by Unknown at 9:09 PM 0 comments
Labels: backbone.js, i18n, JavaScript, require.js, underscore.js
Thursday, September 25, 2014
npm + grunt + bower + grunt-bower-task
Maybe this will help someone... In any case - I'm keeping this KB mostly for myself :)
Since I prefer following structure for my node.js (and backbone / underscore) projects:
project/
public/
js/
lib/ - here will go all libs/frameworks
app/ - here will go all JS application files
...
css/
fonts/
tpl/
1) Sample package.json:
{
"name": "test",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node app.js"
},
"dependencies": {
"express": "3.*",
"bower": "*"
},
"devDependencies": {
"grunt": "^0.4.5",
"grunt-bower-task": "^0.4.0"
}
}
Posted by Unknown at 3:04 PM 0 comments
Labels: JavaScript