// @if TARGET='app'
import y18n from 'y18n';

const i18n = y18n({
  directory: `static/locales`.replace(/\\/g, '\\\\'),
  updateFiles: true,
  locale: 'en',
});
// @endif
// @if TARGET='web'
const i18n = {
  setLocale: () => {},
  getLocale: () => null,
  __: x => x,
  __n: x => x,
};
// @endif

export default i18n;

@@ -37,16 +37,41 @@
  'y18n';
+%0Aimport path from 'path';
 %0A%0Aconst 
@@ -101,24 +101,37 @@
 ry: 
-%60
+path.join(__
 static
-/
+, %60
 locales%60
 .rep
@@ -130,30 +130,8 @@
 les%60
-.replace(/%5C%5C/g, '%5C%5C%5C%5C'
 ),%0A 

fix i18n for prod builds