diff options
author | Manoop Talasila <talasila@research.att.com> | 2019-04-11 13:37:01 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-04-11 13:37:01 +0000 |
commit | 082b5ed2b6d36bec3003638124c512302e8642b5 (patch) | |
tree | 492f9641545617ee070fbf0f0cc3467d075af335 | |
parent | 4cd2af8401bdc64aa5d28629b0365c1067f8ed28 (diff) | |
parent | 96ed6fefe2616f3b473a7aff7f86b00d20338554 (diff) |
Merge "Add angular-translate plugin into FE-os"
-rw-r--r-- | ecomp-portal-FE-os/Gruntfile.js | 20 | ||||
-rw-r--r-- | ecomp-portal-FE-os/bower.json | 4 |
2 files changed, 23 insertions, 1 deletions
diff --git a/ecomp-portal-FE-os/Gruntfile.js b/ecomp-portal-FE-os/Gruntfile.js index 812fc809..6bb51021 100644 --- a/ecomp-portal-FE-os/Gruntfile.js +++ b/ecomp-portal-FE-os/Gruntfile.js @@ -280,6 +280,7 @@ module.exports = function (grunt) { '<%= yeoman.dist %>/public/{,*/}*.css', '<%= yeoman.dist %>/public/assets/images/{,*/}*.{png,jpg,jpeg,gif,webp,svg}', '<%= yeoman.dist %>/public/assets/fonts/*', + '<%= yeoman.dist %>/public/assets/i18n/{,*/}*.{json}', '!<%= yeoman.dist %>/public/assets/images/tmp/*' ] } @@ -326,6 +327,16 @@ module.exports = function (grunt) { }] } }, + jsonmin: { + dist: { + files: [{ + expand: true, + cwd: '<%= yeoman.client %>/assets/i18n', + src: '{,*/}*.{json}', + dest: '<%= yeoman.dist %>/public/assets/i18n' + }] + } + }, svgmin: { dist: { @@ -405,6 +416,7 @@ module.exports = function (grunt) { 'bower_components/**/*', 'bower_components_external/**/*', 'assets/images/**/*', + 'assets/i18n/**/*', 'assets/fonts/**/*', 'index.html' ] @@ -415,6 +427,14 @@ module.exports = function (grunt) { src: ['generated/*'] }, { expand: true, + cwd: '.tmp/i18n', + dest: '<%= yeoman.dist %>/public/assets/i18n', + src: [ + 'CN.json', + 'EN.json' + ] + }, { + expand: true, dest: '<%= yeoman.dist %>', src: [ 'package.json', diff --git a/ecomp-portal-FE-os/bower.json b/ecomp-portal-FE-os/bower.json index b5c8f755..bd176a0f 100644 --- a/ecomp-portal-FE-os/bower.json +++ b/ecomp-portal-FE-os/bower.json @@ -28,7 +28,9 @@ "jquery.newstape": "1.0.0", "oclazyload": "1.0.9", "d3" : "3.1.5", - "angular-gridster": "^0.13.15" + "angular-gridster": "^0.13.15", + "angular-translate": "^2.18.1", + "angular-translate-loader-static-files": "^2.18.1" }, "devDependencies": { |