diff options
author | Tucker McKnight <tucker.mcknight@gmail.com> | 2021-07-12 00:17:11 -0600 |
---|---|---|
committer | Benjamin Brahmer <info@b-brahmer.de> | 2021-07-19 14:58:49 +0200 |
commit | 36d304ec763da893881eed1a1edd46efd4d5e571 (patch) | |
tree | d5a1a9e6c3355b0d1df1af70995e0e848e4ffcb5 /js/controller | |
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/controller')
-rw-r--r-- | js/controller/AppController.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/js/controller/AppController.js b/js/controller/AppController.js index e962bd66a..0365e993b 100644 --- a/js/controller/AppController.js +++ b/js/controller/AppController.js @@ -19,4 +19,6 @@ app.controller('AppController', function (Loading, FeedResource, FolderResource) this.play = function (item) { this.playingItem = item; }; + + this.t = window.t; }); |