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:
parent
32a9528e6d
commit
245c538990
12 changed files with 103 additions and 38 deletions
|
@ -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);
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue