From 8252f4e2a3e21a83401a3ac35920eca62d4a4963 Mon Sep 17 00:00:00 2001 From: Yuzu Date: Wed, 29 Jun 2022 21:06:54 +0700 Subject: [PATCH] Add missing translation for userinfo --- locales/en.json | 4 +++- locales/jp.json | 4 +++- locales/th.json | 4 +++- src/discord/UserInfo.ts | 4 ++-- 4 files changed, 11 insertions(+), 5 deletions(-) diff --git a/locales/en.json b/locales/en.json index 96ac2b6..3d8173b 100644 --- a/locales/en.json +++ b/locales/en.json @@ -35,7 +35,9 @@ "streaming_x": "Streaming {{NAME}}", "listening_x": "Listening to {{NAME}}", "watching_x": "Watching {{NAME}}", - "competing_x": "Competing {{NAME}}" + "competing_x": "Competing {{NAME}}", + "since": "Since {{{TIME}}}", + "end": "Ending {{{TIME}}}" }, "say": { "title": "Say", diff --git a/locales/jp.json b/locales/jp.json index 87c6aef..41182ab 100644 --- a/locales/jp.json +++ b/locales/jp.json @@ -35,7 +35,9 @@ "streaming_x": "{{NAME}}をストリーミング中", "listening_x": "{{NAME}}を再生中", "watching_x": "{{NAME}}鑑賞中", - "competing_x": "{{NAME}}に参戦中です" + "competing_x": "{{NAME}}に参戦中です", + "since": "{{{TIME}}}から", + "end": "{{{TIME}}}で終了" }, "say": { "title": "言うこと", diff --git a/locales/th.json b/locales/th.json index 797c412..461aaaf 100644 --- a/locales/th.json +++ b/locales/th.json @@ -35,7 +35,9 @@ "streaming_x": "กำลังสตรีม {{NAME}}", "listening_x": "กำลังฟัง {{NAME}}", "watching_x": "กำลังดู {{NAME}}", - "competing_x": "กำลังแข่งขัน {{NAME}}" + "competing_x": "กำลังแข่งขัน {{NAME}}", + "since": "ตั้งแต่ {{{TIME}}}", + "end": "สิ้นสุดใน {{{TIME}}}" }, "say": { "title": "สั่งพูด", diff --git a/src/discord/UserInfo.ts b/src/discord/UserInfo.ts index 8dd4ade..844dd9e 100644 --- a/src/discord/UserInfo.ts +++ b/src/discord/UserInfo.ts @@ -117,11 +117,11 @@ const EMBEDS = { ${activity.state === null ? '' : activity.state} ${ startTime - ? `Since ` + ? `${locale.__('userinfo.since', {TIME: `` })}` : '' }${ endTime - ? `\nEnd ` + ? `\n${locale.__('userinfo.end', {TIME: `` })}` : '' } \u200b`,