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 /templates | |
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 'templates')
-rw-r--r-- | templates/part.content.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/part.content.php b/templates/part.content.php index e8699c4de..8c96e7d96 100644 --- a/templates/part.content.php +++ b/templates/part.content.php @@ -30,7 +30,7 @@ ng-class="{'compact-dropdown': Content.showDropdown[item.id]}"> <ul> <li class="util-spacer"></li> - <vue-component name="IconLinkCompact" v-props-item="item" v-props-ctrl="Content" /> + <vue-component name="IconLinkCompact" v-props-item="item" v-props-ctrl="Content" v-props-t="App.t" /> <li class="title only-in-compact" ng-class="{ 'icon-rss': |