diff --git a/src/components/time.vue b/src/components/time.vue index 217053a..f54fdc8 100644 --- a/src/components/time.vue +++ b/src/components/time.vue @@ -39,6 +39,18 @@ export default { this.minutes = `${mm}` this.seconds = `${ss}` this.date = `${year}年${month}月${date}日` + if (this.$i18n.locale === 'en-us') { + let enMonth = '' + switch (month) { + case 1: + enMonth = 'January' + break + case 12: + enMonth = 'Dec.' + break + } + this.date = `${date}th ${enMonth}, ${year}` + } this.week = `${week}` } },