@fakel/rest-admin
Version:
An application that makes it easier to work with your API
21 lines (20 loc) • 629 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.LocaleStore = void 0;
var mobx_1 = require("mobx");
var LocaleStore = /** @class */ (function () {
function LocaleStore(i18nProvider) {
this.locale = 'ru';
this.i18nProvider = null;
mobx_1.makeObservable(this, {
locale: mobx_1.observable,
i18nProvider: mobx_1.observable,
});
this.i18nProvider = i18nProvider;
}
LocaleStore.prototype.setLocale = function (locale) {
this.locale = locale;
};
return LocaleStore;
}());
exports.LocaleStore = LocaleStore;