1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-08-02 20:15:26 +02:00

i18n page strings

This commit is contained in:
McMatts 2022-03-04 13:07:11 -05:00
parent 4ab48cc67d
commit 59dc6ea991
29 changed files with 125 additions and 107 deletions

View file

@ -11,14 +11,17 @@
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() {
// this.transitionTo('folders');
},
activate: function () {
this._super(...arguments);
this.browser.setTitleWithoutSuffix('Aw, Snap!');
this.browser.setTitleWithoutSuffix(this.i18n.localize('not_found'));
}
});

View file

@ -1,7 +1,7 @@
<div class="not-found">
<h1>Oops! That page couldn't be found.</h1>
<p>Maybe the content you're looking for is no longer available?</p>
<h1>{{localize '404'}}</h1>
<p>{{localize '404_explain'}}</p>
<p>&nbsp;</p>
<a href="/">Return to Documize home page</a>
<a href="/">{{localize 'spaces'}}</a>
</div>
{{outlet}}