lbry-desktop/src/ui/i18n/index.js
2019-07-10 17:41:06 -04:00

20 lines
334 B
JavaScript

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