diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-08-07 13:25:50 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-08-07 13:25:50 +0900 |
| commit | 7bd33ecc72c7cbb53a15f3a74f7548564c75fa6b (patch) | |
| tree | 19c0e4d1771baf02c3e7bb59574262f2f949cc8f /src/client/app/desktop/views/components/notes.vue | |
| parent | :pizza: (diff) | |
| download | misskey-7bd33ecc72c7cbb53a15f3a74f7548564c75fa6b.tar.gz misskey-7bd33ecc72c7cbb53a15f3a74f7548564c75fa6b.tar.bz2 misskey-7bd33ecc72c7cbb53a15f3a74f7548564c75fa6b.zip | |
:v:
Diffstat (limited to 'src/client/app/desktop/views/components/notes.vue')
| -rw-r--r-- | src/client/app/desktop/views/components/notes.vue | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/client/app/desktop/views/components/notes.vue b/src/client/app/desktop/views/components/notes.vue index 0ec2f16dbc..02167ef85c 100644 --- a/src/client/app/desktop/views/components/notes.vue +++ b/src/client/app/desktop/views/components/notes.vue @@ -33,7 +33,7 @@ <script lang="ts"> import Vue from 'vue'; -import { url } from '../../../config'; +import * as config from '../../../config'; import getNoteSummary from '../../../../../misc/get-note-summary'; import XNote from './notes.note.vue'; @@ -69,7 +69,7 @@ export default Vue.extend({ const date = new Date(note.createdAt).getDate(); const month = new Date(note.createdAt).getMonth() + 1; note._date = date; - note._datetext = `${month}月 ${date}日`; + note._datetext = '%i18n:common.month-and-day%'.replace('{month}', month.toString()).replace('{day}', date.toString()); return note; }); } @@ -149,7 +149,7 @@ export default Vue.extend({ // サウンドを再生する if (this.$store.state.device.enableSounds && !silent) { - const sound = new Audio(`${url}/assets/post.mp3`); + const sound = new Audio(`${config.url}/assets/post.mp3`); sound.volume = this.$store.state.device.soundVolume; sound.play(); } @@ -187,7 +187,7 @@ export default Vue.extend({ clearNotification() { this.unreadCount = 0; - document.title = '%i18n:common.name%'; + document.title = config.name; }, onVisibilitychange() { |