mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-09-01 09:45:10 +00:00
20 lines
334 B
JavaScript
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;
|