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 --- templates/part.content.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates/part.content.php') 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]}">