Skip to content

Commit

Permalink
#7 adding locale file
Browse files Browse the repository at this point in the history
  • Loading branch information
tracend committed Aug 4, 2013
1 parent a248b86 commit b5f09fc
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions build.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ var _cli = require('commander'),
concat({
src : [
'lib/utils.js',
'lib/locale.js',
'lib/construct.js',
'lib/api.js',
'lib/helpers.js',
Expand Down
12 changes: 12 additions & 0 deletions build/construct.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,18 @@ Object.extend = function(destination, source) {
return destination;
};

/* Language file */

var locale = {
"en-US": {
"errors": {
"No_Backbone": "Backbone is not available: http://backbonejs.org/",
"No_jQuery": "jQuery is not available: http://jquery.com/",
"No_jQueryThree": "jQuery Three is required: https://github.com/makesites/jquery-three",
"No_BackboneApp": "This function requires Backbone APP: https://github.com/makesites/backbone-app"
}
}
};
// main lib

construct = function( options, callback ){
Expand Down
12 changes: 12 additions & 0 deletions lib/locale.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/* Language file */

var locale = {
"en-US": {
"errors": {
"No_Backbone": "Backbone is not available: http://backbonejs.org/",
"No_jQuery": "jQuery is not available: http://jquery.com/",
"No_jQueryThree": "jQuery Three is required: https://github.com/makesites/jquery-three",
"No_BackboneApp": "This function requires Backbone APP: https://github.com/makesites/backbone-app"
}
}
};

0 comments on commit b5f09fc

Please sign in to comment.