From f799f7279790575903b9a231d52ef6d52c1d8dec Mon Sep 17 00:00:00 2001 From: caill <815519168@qq.com> Date: Thu, 7 Dec 2023 18:01:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/time.vue | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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}` } },