From 477a157f4dd129146055dc3426871079c90f0040 Mon Sep 17 00:00:00 2001
From: Manuel Kocher <manuel.kocher@tugraz.at>
Date: Thu, 12 May 2022 15:40:41 +0200
Subject: [PATCH] fix pathing of translation files

Squashed commit of the following:

commit 13f2c178b428f78b796259f79125c708ed72e7c9
Author: Manuel Kocher <manuel.kocher@tugraz.at>
Date:   Thu May 12 15:25:22 2022 +0200

    fix pathing of i18n files

commit 21309f2c44bd42caaa753e34af26705c8715edc5
Merge: f69672e8 7a2e492e
Author: Manuel Kocher <manuel.kocher@tugraz.at>
Date:   Thu May 12 14:16:56 2022 +0200

    Merge branch 'master' into dbp-translation-component

commit f69672e8322310e5eb8608e972a261af120dcda0
Author: Manuel Kocher <manuel.kocher@tugraz.at>
Date:   Thu May 12 13:48:10 2022 +0200

    Remove unnecessary en translation text

commit 6d0df9840ea4b481bc7d22a7eb3b02add943d0d6
Author: Manuel Kocher <manuel.kocher@tugraz.at>
Date:   Thu May 12 13:36:45 2022 +0200

    Remove unnecessary imports and minor refactor

commit 6496d910d9e150f0b28de2ee8b3372e880fa17af
Author: Manuel Kocher <manuel.kocher@tugraz.at>
Date:   Thu May 12 13:24:51 2022 +0200

    Add lang-File attribute to README

commit 7a528144fd02b9af2197815ca931f298452c0e29
Author: Manuel Kocher <manuel.kocher@tugraz.at>
Date:   Thu May 12 13:17:40 2022 +0200

    Add dbp-translation component and include it in showcase
---
 toolkit-showcase/assets/dbp-toolkit-showcase.html.ejs | 2 +-
 toolkit-showcase/rollup.config.js                     | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/toolkit-showcase/assets/dbp-toolkit-showcase.html.ejs b/toolkit-showcase/assets/dbp-toolkit-showcase.html.ejs
index 1cf3784a..89c2a191 100644
--- a/toolkit-showcase/assets/dbp-toolkit-showcase.html.ejs
+++ b/toolkit-showcase/assets/dbp-toolkit-showcase.html.ejs
@@ -113,7 +113,7 @@
 <<%= name %>
     provider-root
     lang="de"
-    lang-file="<%= getUrl('/src/i18n/') %>"
+    lang-file="<%= getPrivateUrl('i18n/') %>"
     entry-point-url="<%= entryPointURL %>"
     nextcloud-auth-url="<%= nextcloudWebAppPasswordURL %>"
     nextcloud-web-dav-url="<%= nextcloudWebDavURL %>"
diff --git a/toolkit-showcase/rollup.config.js b/toolkit-showcase/rollup.config.js
index 407fac6d..1a85c45a 100644
--- a/toolkit-showcase/rollup.config.js
+++ b/toolkit-showcase/rollup.config.js
@@ -168,6 +168,7 @@ Dependencies:
                     {src: 'assets/icon-*.png', dest: 'dist/' + (await getDistPath(pkg.name))},
                     {src: 'assets/apple-*.png', dest: 'dist/' + (await getDistPath(pkg.name))},
                     {src: 'assets/safari-*.svg', dest: 'dist/' + (await getDistPath(pkg.name))},
+                    {src: 'src/i18n', dest: 'dist/' + (await getDistPath(pkg.name))},
                     {
                         src: 'assets/manifest.json',
                         dest: 'dist',
-- 
GitLab