Skip to content

Commit

Permalink
test(webhook): adjust translations
Browse files Browse the repository at this point in the history
  • Loading branch information
MrOrz committed Jan 3, 2024
1 parent 817092b commit 40337d3
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 10 deletions.
13 changes: 13 additions & 0 deletions i18n/ja.po
Original file line number Diff line number Diff line change
Expand Up @@ -1086,6 +1086,7 @@ msgid_plural ""
"Out of the ${ totalCount } messages you sent, ${ notInDbMsgIndexes } are "
"not in the Cofacts database."
msgstr[0] ""
msgstr[1] ""

#: src/webhook/handlers/askingCooccurrence.ts:107
#, javascript-format
Expand All @@ -1105,4 +1106,16 @@ msgstr ""

#: src/webhook/handlers/processBatch.ts:43
msgid "No, from different person or at different time"
msgstr ""

#: src/webhook/handlers/askingArticleSubmissionConsent.ts:245
msgid ""
"This article is still under verification, please refrain from believing it "
"for now. \n"
"Below is the preliminary analysis result by the bot, hoping to provide you "
"with some insights."
msgstr ""

#: src/webhook/handlers/askingArticleSubmissionConsent.ts:249
msgid "After reading the automatic analysis by the bot above, you can:"
msgstr ""
16 changes: 14 additions & 2 deletions i18n/zh_TW.po
Original file line number Diff line number Diff line change
Expand Up @@ -1068,7 +1068,7 @@ msgstr "資料庫裡有幾篇訊息,跟您傳給我的有些接近。"

#: src/webhook/handlers/askingCooccurrence.ts:57
msgid "Please send me the messages separately."
msgstr "好的,那請將這些訊息一則一則分開傳給我唷。"
msgstr "好的,那再請您將這些訊息一則一則分開傳給我唷。"

#: src/webhook/handlers/askingCooccurrence.ts:96
#, javascript-format
Expand Down Expand Up @@ -1105,4 +1105,16 @@ msgstr "是同一人、同時傳送的"

#: src/webhook/handlers/processBatch.ts:43
msgid "No, from different person or at different time"
msgstr "是由不同人、或不同時間傳的"
msgstr "是由不同人、或不同時間傳的"

#: src/webhook/handlers/askingArticleSubmissionConsent.ts:245
msgid ""
"This article is still under verification, please refrain from believing it "
"for now. \n"
"Below is the preliminary analysis result by the bot, hoping to provide you "
"with some insights."
msgstr "這篇文章尚待查核中,請先不要相信這篇文章。\n以下是機器人初步分析此篇訊息的結果,希望能帶給你一些想法。"

#: src/webhook/handlers/askingArticleSubmissionConsent.ts:249
msgid "After reading the automatic analysis by the bot above, you can:"
msgstr "讀完以上機器人的自動分析後,您可以:"
Original file line number Diff line number Diff line change
Expand Up @@ -186,14 +186,12 @@ Object {
"type": "flex",
},
Object {
"altText": "這篇文章尚待查核中,請先不要相信這篇文章
以下是機器人初步分析此篇訊息的結果,希望能帶給你一些想法。",
"altText": "This article is still under verification, please refrain from believing it for now. \\\\nBelow is the preliminary analysis result by the bot, hoping to provide you with some insights.",
"contents": Object {
"body": Object {
"contents": Array [
Object {
"text": "這篇文章尚待查核中,請先不要相信這篇文章
以下是機器人初步分析此篇訊息的結果,希望能帶給你一些想法。",
"text": "This article is still under verification, please refrain from believing it for now. \\\\nBelow is the preliminary analysis result by the bot, hoping to provide you with some insights.",
"type": "text",
"wrap": true,
},
Expand All @@ -214,12 +212,12 @@ Object {
"type": "text",
},
Object {
"altText": "讀完以上機器人的自動分析後,您可以:",
"altText": "After reading the automatic analysis by the bot above, you can:",
"contents": Object {
"body": Object {
"contents": Array [
Object {
"text": "讀完以上機器人的自動分析後,您可以:",
"text": "After reading the automatic analysis by the bot above, you can:",
"type": "text",
"wrap": true,
},
Expand Down
4 changes: 2 additions & 2 deletions src/webhook/handlers/askingArticleSubmissionConsent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,11 +242,11 @@ const askingArticleSubmissionConsent: ChatbotPostbackHandler = async ({
]
: [
createTextMessage({
text: '這篇文章尚待查核中,請先不要相信這篇文章。\n以下是機器人初步分析此篇訊息的結果,希望能帶給你一些想法。',
text: t`This article is still under verification, please refrain from believing it for now. \nBelow is the preliminary analysis result by the bot, hoping to provide you with some insights.`,
}),
aiReply,
createTextMessage({
text: '讀完以上機器人的自動分析後,您可以:',
text: t`After reading the automatic analysis by the bot above, you can:`,
}),
]),
{
Expand Down

0 comments on commit 40337d3

Please sign in to comment.