lbry-desktop/ui/js/app.js
2017-09-06 21:53:42 -04:00

28 lines
452 B
JavaScript

import store from "store.js";
const env = ENV;
const config = {
...require(`./config/${env}`),
};
const i18n = require("y18n")({
directory: "app/locales",
updateFiles: false,
locale: "en",
});
const logs = [];
const app = {
env: env,
config: config,
store: store,
i18n: i18n,
logs: logs,
log: function(message) {
logs.push(message);
},
};
window.__ = i18n.__;
window.__n = i18n.__n;
global.app = app;
module.exports = app;