mirror of
https://github.com/documize/community.git
synced 2025-07-24 07:39:43 +02:00
i18n admin strings
This commit is contained in:
parent
4ed2b3902c
commit
53297f7627
27 changed files with 99 additions and 58 deletions
|
@ -11,8 +11,11 @@
|
|||
|
||||
import Route from '@ember/routing/route';
|
||||
import AuthenticatedRouteMixin from 'ember-simple-auth/mixins/authenticated-route-mixin';
|
||||
import { inject as service } from '@ember/service';
|
||||
|
||||
export default Route.extend(AuthenticatedRouteMixin, {
|
||||
i18n: service(),
|
||||
|
||||
beforeModel () {
|
||||
if (!this.session.isAdmin) {
|
||||
this.transitionTo('auth.login');
|
||||
|
@ -20,6 +23,6 @@ export default Route.extend(AuthenticatedRouteMixin, {
|
|||
},
|
||||
|
||||
activate() {
|
||||
this.get('browser').setTitle('Groups');
|
||||
this.get('browser').setTitle(this.i18n.localize('admin_user_groups'));
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue