1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-25 08:09:43 +02:00

Initial i18n experiment

This commit is contained in:
McMatts 2022-03-01 16:22:53 -05:00
parent 32a9528e6d
commit 245c538990
12 changed files with 103 additions and 38 deletions

View file

@ -99,6 +99,11 @@ export default SimpleAuthSession.extend({
return this.get('session.content.authenticated.token');
}),
locale: computed('session.content.authenticated.user', function () {
let locale = this.get('session.content.authenticated.user.locale');
if (_.isUndefined(locale) || locale === "") return this.appMeta.locale;
}),
init() {
this._super(...arguments);
},