Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ngBabelfish",
"version": "1.7.1",
"version": "1.7.2",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Run node version.js 1.7.3, the 1.7.2 is already available.

"homepage": "https://github.com/dhoko/ngBabelfish",
"authors": [
"dhoko <aurelien@procheo.fr>"
Expand Down
7 changes: 7 additions & 0 deletions i18n/factory/translator.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,13 @@ module.exports = ['$rootScope', '$http', function ($rootScope, $http) {

},

setDataForLanguage: function setDataForLanguage(data, language) {

if(config.lazy) {
i18n.data[language] = data;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because i have to add data for a language after init and it doesn't work with the current code. I can't set the language dynamically

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup but your code doesn't work if we are not using lazy mode. :)

}
},

/**
* Configure this factory
*
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ng-babelfish",
"version": "1.7.1",
"version": "1.7.2",
"description": "Internationalization module for angular.js, it's magic !",
"main": "dist/bundle.js",
"scripts": {
Expand Down