diff --git a/gamification-crowdin-webapp/src/main/webapp/WEB-INF/gatein-resources.xml b/gamification-crowdin-webapp/src/main/webapp/WEB-INF/gatein-resources.xml index 4024322..26733a5 100644 --- a/gamification-crowdin-webapp/src/main/webapp/WEB-INF/gatein-resources.xml +++ b/gamification-crowdin-webapp/src/main/webapp/WEB-INF/gatein-resources.xml @@ -20,10 +20,7 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. --> - - + engagementCenterActionsCrowdinExtensions diff --git a/gamification-crowdin-webapp/src/main/webapp/WEB-INF/web.xml b/gamification-crowdin-webapp/src/main/webapp/WEB-INF/web.xml index 8e92cb6..4f0d6fa 100644 --- a/gamification-crowdin-webapp/src/main/webapp/WEB-INF/web.xml +++ b/gamification-crowdin-webapp/src/main/webapp/WEB-INF/web.xml @@ -44,6 +44,7 @@ *.css *.js *.html + /i18n/* /images/* diff --git a/gamification-crowdin-webapp/src/main/webapp/vue-app/connectorExtensions/extensions.js b/gamification-crowdin-webapp/src/main/webapp/vue-app/connectorExtensions/extensions.js index 5cdca3d..e77f506 100644 --- a/gamification-crowdin-webapp/src/main/webapp/vue-app/connectorExtensions/extensions.js +++ b/gamification-crowdin-webapp/src/main/webapp/vue-app/connectorExtensions/extensions.js @@ -26,7 +26,7 @@ export function init() { rank: 40, init: () => { const lang = window.eXo?.env?.portal?.language || 'en'; - const url = `${eXo.env.portal.context}/${eXo.env.portal.rest}/i18n/bundle/locale.portlet.CrowdinWebHookManagement-${lang}.json`; + const url = `/gamification-crowdin/i18n/locale.portlet.CrowdinWebHookManagement?lang=${lang}`; return exoi18n.loadLanguageAsync(lang, url); } }); diff --git a/gamification-crowdin-webapp/src/main/webapp/vue-app/crowdinUserConnectorExtension/js/crowdinConnector.js b/gamification-crowdin-webapp/src/main/webapp/vue-app/crowdinUserConnectorExtension/js/crowdinConnector.js index e503814..ea0d57d 100644 --- a/gamification-crowdin-webapp/src/main/webapp/vue-app/crowdinUserConnectorExtension/js/crowdinConnector.js +++ b/gamification-crowdin-webapp/src/main/webapp/vue-app/crowdinUserConnectorExtension/js/crowdinConnector.js @@ -27,7 +27,7 @@ export default { PROFILE_BASER_URL: 'https://crowdin.com', init: () => { const lang = window.eXo?.env?.portal?.language || 'en'; - const url = `${eXo.env.portal.context}/${eXo.env.portal.rest}/i18n/bundle/locale.portlet.CrowdinWebHookManagement-${lang}.json`; + const url = `/gamification-crowdin/i18n/locale.portlet.CrowdinWebHookManagement?lang=${lang}`; return exoi18n.loadLanguageAsync(lang, url); }, openOauthPopup(connector) {