diff --git a/src/renderer/i18n/index.js b/src/renderer/i18n/index.js index e7363103..95fca8f9 100644 --- a/src/renderer/i18n/index.js +++ b/src/renderer/i18n/index.js @@ -60,7 +60,7 @@ class CustomVueI18n extends VueI18n { } if (url.pathname) { - url.pathname += `/static/locales/${locale}.json` + url.pathname += `${!url.pathname.endsWith('/') ? '/' : ''}static/locales/${locale}.json` } else { url.pathname = `/static/locales/${locale}.json` }