// @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;

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

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

export default i18n;

fix i18n for prod builds