diff options
author | Tucker McKnight <tucker.mcknight@gmail.com> | 2021-07-12 09:17:11 +0300 |
---|---|---|
committer | Benjamin Brahmer <info@b-brahmer.de> | 2021-07-19 15:58:49 +0300 |
commit | 36d304ec763da893881eed1a1edd46efd4d5e571 (patch) | |
tree | d5a1a9e6c3355b0d1df1af70995e0e848e4ffcb5 /js/package.json | |
parent | 83cdcb016b6bc2679893d5c93325f4003f8b4209 (diff) |
Use front-end translation functionvue-modular
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 <tucker.mcknight@gmail.com>
Diffstat (limited to 'js/package.json')
-rw-r--r-- | js/package.json | 8 |
1 files changed, 5 insertions, 3 deletions
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" } } |