mirror of
https://github.com/documize/community.git
synced 2025-08-05 05:25:27 +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 AuthenticatedRouteMixin from 'ember-simple-auth/mixins/authenticated-route-mixin';
|
||||
import Route from '@ember/routing/route';
|
||||
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('Manage Spaces');
|
||||
this.get('browser').setTitle(this.i18n.localize('spaces'));
|
||||
}
|
||||
});
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{{layout/logo-heading
|
||||
title="Spaces"
|
||||
desc="Delete spaces, take ownership of shared and orphaned spaces"
|
||||
title=(localize 'spaces')
|
||||
desc=(localize 'admin_spaces_explain')
|
||||
icon=constants.Icon.Grid}}
|
||||
|
||||
{{customize/space-admin}}
|
||||
{{customize/space-admin}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue