"use strict";var u=Object.create;var p=Object.defineProperty;var S=Object.getOwnPropertyDescriptor;var w=Object.getOwnPropertyNames;var y=Object.getPrototypeOf;var U=Object.prototype.hasOwnProperty;var i=(e,r)=>p(e,"name",{value:r,configurable:true});var h=(e,r)=>{for(var o in r)p(e,o,{get:r[o],enumerable:true})};var d=(e,r,o,s)=>{if(r&&typeof r==="object"||typeof r==="function"){for(let t of w(r))if(!U.call(e,t)&&t!==o)p(e,t,{get:()=>r[t],enumerable:!(s=S(r,t))||s.enumerable})}return e};var v=(e,r,o)=>(o=e!=null?u(y(e)):{},d(r||!e||!e.__esModule?p(o,"default",{value:e,enumerable:true}):o,e));var A=e=>d(p({},"__esModule",{value:true}),e);var R={};h(R,{default:()=>P});module.exports=A(R);var f=require("react/jsx-runtime");var n=require("mobx-react");var m=require("react");var l=require("react-intl");var c=v(require("./i18n/translations"));const N=(0,c.default)();class a extends m.Component{componentDidUpdate(){window["ferdium"].menu.rebuild()}render(){const{stores:r,children:o}=this.props;const{locale:s}=r.app;return(0,f.jsx)(l.IntlProvider,{locale:s,messages:N[s],ref:t=>{window["ferdium"].intl=t?t.state.intl:null},children:o},s)}}i(a,"I18N");var P=(0,n.inject)("stores")((0,n.observer)(a));
