Skip to content

Commit f0f4e7a

Browse files
committed
make path to translations absolute so web component does not request them from host page
1 parent 014e63a commit f0f4e7a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/utils/i18n.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,9 @@ i18n
111111
interpolation: {
112112
escapeValue: false, // not needed for react!!
113113
},
114-
backend: { loadPath: "/translations/{{lng}}.json" },
114+
backend: {
115+
loadPath: `${process.env.PUBLIC_URL}/translations/{{lng}}.json`,
116+
},
115117
});
116118

117119
export default i18n;

0 commit comments

Comments
 (0)