diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2018-11-09 03:44:35 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-11-09 03:44:35 +0900 |
| commit | 25a69ec1b69cb7f380949ef9cf1c3599eaa4face (patch) | |
| tree | 6f10016d32f94140d3953446c4b1fdb474e216e8 /src/client/app/mobile/views/components/notifications.vue | |
| parent | Update CircleCI configuration (#3163) (diff) | |
| download | misskey-25a69ec1b69cb7f380949ef9cf1c3599eaa4face.tar.gz misskey-25a69ec1b69cb7f380949ef9cf1c3599eaa4face.tar.bz2 misskey-25a69ec1b69cb7f380949ef9cf1c3599eaa4face.zip | |
Refactoring of i18n (#3165)
Refactoring of i18n
Diffstat (limited to 'src/client/app/mobile/views/components/notifications.vue')
| -rw-r--r-- | src/client/app/mobile/views/components/notifications.vue | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/client/app/mobile/views/components/notifications.vue b/src/client/app/mobile/views/components/notifications.vue index 3669e84ea2..3a95e0d158 100644 --- a/src/client/app/mobile/views/components/notifications.vue +++ b/src/client/app/mobile/views/components/notifications.vue @@ -19,17 +19,19 @@ <button class="more" v-if="moreNotifications" @click="fetchMoreNotifications" :disabled="fetchingMoreNotifications"> <template v-if="fetchingMoreNotifications"><fa icon="spinner .pulse" fixed-width/></template> - {{ fetchingMoreNotifications ? '%i18n:common.loading%' : '%i18n:@more%' }} + {{ fetchingMoreNotifications ? $t('@.loading') : $t('@.load-more') }} </button> - <p class="empty" v-if="notifications.length == 0 && !fetching">%i18n:@empty%</p> + <p class="empty" v-if="notifications.length == 0 && !fetching">{{ $t('empty') }}</p> </div> </template> <script lang="ts"> import Vue from 'vue'; +import i18n from '../../../i18n'; export default Vue.extend({ + i18n: i18n('mobile/views/components/notifications.vue'), data() { return { fetching: true, @@ -46,7 +48,7 @@ export default Vue.extend({ const date = new Date(notification.createdAt).getDate(); const month = new Date(notification.createdAt).getMonth() + 1; notification._date = date; - notification._datetext = '%i18n:common.month-and-day%'.replace('{month}', month.toString()).replace('{day}', date.toString()); + notification._datetext = this.$t('@.month-and-day').replace('{month}', month.toString()).replace('{day}', date.toString()); return notification; }); } |