From 36d304ec763da893881eed1a1edd46efd4d5e571 Mon Sep 17 00:00:00 2001 From: Tucker McKnight Date: Mon, 12 Jul 2021 00:17:11 -0600 Subject: Use front-end translation function PHP is not parsing the Vue components, so use Nextcloud's t() Javascript function instead. This commit adds t() as a global variable on the AppController so that it can be passed into components. Also move vue-loader and vue-template-compiler to devDependencies in package.json. Signed-off-by: Tucker McKnight --- js/package.json | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'js/package.json') diff --git a/js/package.json b/js/package.json index 5605d6ec9..759431020 100644 --- a/js/package.json +++ b/js/package.json @@ -33,6 +33,7 @@ "private": true, "homepage": "https://github.com/nextcloud/news", "devDependencies": { + "@vue/compiler-sfc": "^3.1.4", "gulp": "^4.0.2", "gulp-cli": "^2.3.0", "gulp-concat": "^2.6.1", @@ -50,7 +51,9 @@ "karma-jasmine": "^4.0.1", "minimatch": "^3.0.4", "natives": "^1.1.6", - "webpack-stream": "^6.1.2" + "webpack-stream": "^6.1.2", + "vue-loader": "^15.9.7", + "vue-template-compiler": "^2.6.14" }, "dependencies": { "angular": "^1.8.2", @@ -62,7 +65,6 @@ "masonry-layout": "^4.2.2", "moment": "^2.29.1", "ngVue": "^1.7.8", - "vue": "^2.6.14", - "vue-loader": "^15.9.7" + "vue": "^2.6.14" } } -- cgit v1.2.3