moar and moar i18n

Signed-off-by: Marcin Mikołajczak <me@m4sk.in>
This commit is contained in:
Marcin Mikołajczak
2018-05-19 23:36:26 +02:00
parent 254fbbbc75
commit 01e7c0175e
12 changed files with 89 additions and 36 deletions

View File

@@ -16,11 +16,11 @@ export default Vue.extend({
this.folder = this.$route.params.folder;
},
mounted() {
document.title = 'Misskey Drive';
document.title = '%i18n:@title%';
},
methods: {
onMoveRoot() {
const title = 'Misskey Drive';
const title = '%i18n:@title%';
// Rewrite URL
history.pushState(null, title, '/i/drive');
@@ -28,7 +28,7 @@ export default Vue.extend({
document.title = title;
},
onOpenFolder(folder) {
const title = folder.name + ' | Misskey Drive';
const title = folder.name + ' | %i18n:@title%';
// Rewrite URL
history.pushState(null, title, '/i/drive/folder/' + folder.id);
@@ -49,4 +49,3 @@ export default Vue.extend({
> .mk-drive
height 100%
</style>