From b56f838718386e611af71a74b479a331b832da79 Mon Sep 17 00:00:00 2001 From: INOUE Daisuke Date: Mon, 24 Mar 2025 21:50:25 +0900 Subject: mails translation --- locales/en-US.json | 67 +++++++++++++++++++++- locales/en.json | 67 +++++++++++++++++++++- locales/ja.json | 54 ++++++++++++++++- src/routes.js | 15 ++--- src/routes/event.ts | 24 ++++---- .../addEventAttendeeHtml.handlebars | 14 ++--- .../addEventAttendeeText.handlebars | 13 ++--- .../addEventComment/addEventCommentHtml.handlebars | 10 ++-- .../addEventComment/addEventCommentText.handlebars | 8 +-- .../emails/createEvent/createEventHtml.handlebars | 8 +-- .../emails/createEvent/createEventText.handlebars | 7 +-- .../createEventGroupHtml.handlebars | 22 +++---- .../createEventGroupText.handlebars | 21 ++++--- .../createEventMagicLinkHtml.handlebars | 10 ++-- .../createEventMagicLinkText.handlebars | 9 ++- .../emails/deleteEvent/deleteEventHtml.handlebars | 6 +- .../emails/deleteEvent/deleteEventText.handlebars | 4 +- views/emails/editEvent/editEventHtml.handlebars | 10 ++-- views/emails/editEvent/editEventText.handlebars | 10 ++-- .../eventGroupUpdatedHtml.handlebars | 12 ++-- .../eventGroupUpdatedText.handlebars | 11 ++-- .../removeEventAttendeeHtml.handlebars | 6 +- .../removeEventAttendeeText.handlebars | 4 +- views/emails/subscribed/subscribedHtml.handlebars | 11 ++-- views/emails/subscribed/subscribedText.handlebars | 10 ++-- .../unattendEvent/unattendEventHtml.handlebars | 12 ++-- .../unattendEvent/unattendEventText.handlebars | 11 ++-- 27 files changed, 315 insertions(+), 141 deletions(-) diff --git a/locales/en-US.json b/locales/en-US.json index f242b18..518860c 100644 --- a/locales/en-US.json +++ b/locales/en-US.json @@ -177,6 +177,58 @@ "join": "Users can mark themselves as attending this event", "joinemaildesc": "If you provide your email, you will receive updates to the event.", "magiclink-invalid": "This magic link is invalid or has expired. Please request a new one here.", + "mail.addeventattendee.clicktocancel": "Click this link", + "mail.addeventattendee.dontknowhtml": "If you didn't mark yourself as attending an event on {{ siteName }}, someone may have accidentally typed your email instead of theirs. If you don't want to attend this event, use the deletion password above to remove yourself from the event page.", + "mail.addeventattendee.eventlink": "Follow this link to open the event page any time", + "mail.addeventattendee.preface": "You just marked yourself as attending an event on {{ siteName }}. Thank you! We'll send you another email if there are any updates to the event. Your email will be automatically removed from the database once the event finishes.", + "mail.addeventattendee.removapasswordhtml": "You can also head to the event page and use this deletion password", + "mail.addeventattendee.removelink": "Need to remove yourself from this event? Click this link", + "mail.addeventattendee.removepassword": "You can also head to the event page and use this deletion password", + "mail.addeventattendee.toremove": "Need to remove yourself from this event?", + "mail.addeventcomment.link": "Click here to see the comment", + "mail.addeventcomment.preface": "{{ commentAuthor }} has just posted a comment on an event you're attending on {{ siteName }}.", + "mail.addeventcomment.prefacehtml": "{{ commentAuthor }} has just posted a comment on an event you're attending on {{ siteName }}.", + "mail.createevent.desc": "Use the following link to edit your event. DO NOT SHARE THIS, as anyone with this link can edit your event.", + "mail.createevent.preface": "Your event has been created!", + "mail.createevent.sharelink": "Use this link to share it with people", + "mail.createeventgroup.done": "And that's it - have a great day!", + "mail.createeventgroup.dontknow": "If you didn't make an event group on {{ siteName }}, someone may have accidentally typed your email instead of theirs when they were making the group. Just click on the edit link above and delete that event group, which removes your email from the system as well.", + "mail.createeventgroup.editgrouplink": "Edit the event group here", + "mail.createeventgroup.editgrouplinkhtml": "Edit event group", + "mail.createeventgroup.eventlink": "To add events to this group (whether brand new events or ones you've already made), click the 'This event is part of an event group' checkbox. You will need to copy the following two codes into the box which opens:", + "mail.createeventgroup.link": "You can edit your event group by clicking the button below, or just following this link", + "mail.createeventgroup.preface": "You just created a new event group on {{ siteName }}! Thanks a bunch - we're delighted to have you.", + "mail.createeventgroup.sharelink": "To let others know about your event group, send them this link", + "mail.createeventhtml.desc": "Click this button to edit your event. DO NOT SHARE THIS, as anyone with this link can edit your event.", + "mail.createeventhtml.editevent": "Edit Your Event", + "mail.deleteevent.done": "If you didn't mark yourself as attending an event on {{siteName}}, someone may have accidentally typed your email instead of theirs. Don't worry - that event, and your email, is deleted from the system now.", + "mail.deleteevent.preface": "The {{ eventName }} event you're attending on {{ siteName }} was just deleted by its creator.", + "mail.dontknow": "If you didn't mark yourself as attending an event on {{siteName}}, someone may have accidentally typed your email instead of theirs. If you don't want to attend this event, use the deletion password above to remove yourself from the event page.", + "mail.editevent.dontknow": "If you didn't mark yourself as attending an event on {{ siteName }}, someone may have accidentally typed your email instead of theirs. Don't worry - there isn't anything you need to do. Your email will be removed from the system when the event finishes.", + "mail.editevent.link": "Click here to see the event", + "mail.editevent.preface": "An event you're attending on {{ siteName }} has just been edited.", + "mail.eventgroupupdate.afterlink": " ", + "mail.eventgroupupdate.beforelink": "The event is ", + "mail.eventgroupupdate.dontknow": "If you didn't subscribe yourself to this event group on {{ siteName }}, someone may have accidentally typed your email instead of theirs.", + "mail.eventgroupupdate.dontknowhtml": "If you didn't subscribe yourself to this event group on {{ siteName }}, someone may have accidentally typed your email instead of theirs. Click here to unsubscribe", + "mail.eventgroupupdate.grouplink": "Click here to see the event group", + "mail.eventgroupupdate.holduphtml": "Hold up - I don't want to receive these emails any more!", + "mail.eventgroupupdate.link": "The event is '{{ eventName }}'", + "mail.eventgroupupdate.preface": "A new event has been added to the event group '{{ eventGroupName }}' on {{ siteName }}", + "mail.eventgroupupdate.prefacehtml": "A new event has been added to the event group '{eventGroupName}' on {{ siteName }}.", + "mail.eventgroupupdate.unsubscribe": "Click here to unsubscribe", + "mail.holdup": "Hold up - I have no idea what this email is about!", + "mail.love": "Love,", + "mail.magiclink.dontknow": "If you didn't try to create an event on {{ siteName }}, someone may have accidentally typed your email instead of theirs. Don't worry - there isn't anything you need to do. Your email address will be deleted after the magic link expires.", + "mail.magiclink.link": "This link will expire in 24 hours and can be used multiple times before then. Don't share it publicly, because it will allow anyone to create an event on your behalf!", + "mail.magiclink.preface": "Here's a magic link which will allow you to create an event on {{ siteName }}.", + "mail.removeeventattendee.dontknow": "If you didn't mark yourself as attending an event on {{siteName}}, someone may have accidentally typed your email instead of theirs. Don't worry - you won't receive any more of these emails for this event, and your email has been removed from the database.", + "mail.removeeventattendee.preface": "You have been removed from the event {{ eventName }} on {{ siteName }} by the organizer of the event.", + "mail.subscribed.desc": "You will receive emails when new events are added to the group, and can unsubscribe at any time.", + "mail.subscribed.preface": "You have been subscribed to the event group '{{eventGroupName}}' on {{ siteName }}.", + "mail.unattendevent.desc": "If you didn't mean to do this, an admin may have removed you from the event.", + "mail.unattendevent.dontknow": "If you didn't mark yourself as attending an event on {{siteName}}, someone may have accidentally typed your email instead of theirs, then removed it. Don't worry - you won't receive any more emails linked to this event.", + "mail.unattendevent.preface": "You just removed yourself from an event on {{ siteName }}. You will no longer receive update emails for this event.", "main.defaultmetadata": "An easier, quicker, and much less privacy-invading way to make and share events", "main.footnote": " Gathio version {{version}} · GitHub · Made with by Raphael and contributors", "mdsupport": "Markdown formatting\nsupported.", @@ -214,6 +266,19 @@ "reply": "Reply", "replycontent": "What would you like to reply?", "right": "Get it right!", + "routes.addeventattendeesubject": "You're RSVPed to {{ eventName }}", + "routes.addeventcommentsubject": "New comment in {{eventName}}", + "routes.deleteeventsubject": "{{ eventName }} was deleted", + "routes.event.descriptionchanged": "the event description changed", + "routes.event.difftext": "This event was just updated with new information.", + "routes.event.editedsubject": "was just edited", + "routes.event.endtimechanged": "the end time changed to ", + "routes.event.locationchanged": "the location changed to", + "routes.event.namechanged": "the event name changed to", + "routes.event.starttimechanged": "the end time changed to", + "routes.event.timezonechanged": "the time zone changed to", + "routes.removeeventattendeesubject": "You have been removed from an event", + "routes.subscribedsubject": "You have subscribed to an event group", "save": "Save changes", "saving": "Saving...", "selectfile": "Select file", @@ -248,4 +313,4 @@ "wontshow": "Will not be shown anywhere (optional).", "year-month-format": "MMMM YYYY", "youremail": "Your email" -} \ No newline at end of file +} diff --git a/locales/en.json b/locales/en.json index f242b18..518860c 100644 --- a/locales/en.json +++ b/locales/en.json @@ -177,6 +177,58 @@ "join": "Users can mark themselves as attending this event", "joinemaildesc": "If you provide your email, you will receive updates to the event.", "magiclink-invalid": "This magic link is invalid or has expired. Please request a new one here.", + "mail.addeventattendee.clicktocancel": "Click this link", + "mail.addeventattendee.dontknowhtml": "If you didn't mark yourself as attending an event on {{ siteName }}, someone may have accidentally typed your email instead of theirs. If you don't want to attend this event, use the deletion password above to remove yourself from the event page.", + "mail.addeventattendee.eventlink": "Follow this link to open the event page any time", + "mail.addeventattendee.preface": "You just marked yourself as attending an event on {{ siteName }}. Thank you! We'll send you another email if there are any updates to the event. Your email will be automatically removed from the database once the event finishes.", + "mail.addeventattendee.removapasswordhtml": "You can also head to the event page and use this deletion password", + "mail.addeventattendee.removelink": "Need to remove yourself from this event? Click this link", + "mail.addeventattendee.removepassword": "You can also head to the event page and use this deletion password", + "mail.addeventattendee.toremove": "Need to remove yourself from this event?", + "mail.addeventcomment.link": "Click here to see the comment", + "mail.addeventcomment.preface": "{{ commentAuthor }} has just posted a comment on an event you're attending on {{ siteName }}.", + "mail.addeventcomment.prefacehtml": "{{ commentAuthor }} has just posted a comment on an event you're attending on {{ siteName }}.", + "mail.createevent.desc": "Use the following link to edit your event. DO NOT SHARE THIS, as anyone with this link can edit your event.", + "mail.createevent.preface": "Your event has been created!", + "mail.createevent.sharelink": "Use this link to share it with people", + "mail.createeventgroup.done": "And that's it - have a great day!", + "mail.createeventgroup.dontknow": "If you didn't make an event group on {{ siteName }}, someone may have accidentally typed your email instead of theirs when they were making the group. Just click on the edit link above and delete that event group, which removes your email from the system as well.", + "mail.createeventgroup.editgrouplink": "Edit the event group here", + "mail.createeventgroup.editgrouplinkhtml": "Edit event group", + "mail.createeventgroup.eventlink": "To add events to this group (whether brand new events or ones you've already made), click the 'This event is part of an event group' checkbox. You will need to copy the following two codes into the box which opens:", + "mail.createeventgroup.link": "You can edit your event group by clicking the button below, or just following this link", + "mail.createeventgroup.preface": "You just created a new event group on {{ siteName }}! Thanks a bunch - we're delighted to have you.", + "mail.createeventgroup.sharelink": "To let others know about your event group, send them this link", + "mail.createeventhtml.desc": "Click this button to edit your event. DO NOT SHARE THIS, as anyone with this link can edit your event.", + "mail.createeventhtml.editevent": "Edit Your Event", + "mail.deleteevent.done": "If you didn't mark yourself as attending an event on {{siteName}}, someone may have accidentally typed your email instead of theirs. Don't worry - that event, and your email, is deleted from the system now.", + "mail.deleteevent.preface": "The {{ eventName }} event you're attending on {{ siteName }} was just deleted by its creator.", + "mail.dontknow": "If you didn't mark yourself as attending an event on {{siteName}}, someone may have accidentally typed your email instead of theirs. If you don't want to attend this event, use the deletion password above to remove yourself from the event page.", + "mail.editevent.dontknow": "If you didn't mark yourself as attending an event on {{ siteName }}, someone may have accidentally typed your email instead of theirs. Don't worry - there isn't anything you need to do. Your email will be removed from the system when the event finishes.", + "mail.editevent.link": "Click here to see the event", + "mail.editevent.preface": "An event you're attending on {{ siteName }} has just been edited.", + "mail.eventgroupupdate.afterlink": " ", + "mail.eventgroupupdate.beforelink": "The event is ", + "mail.eventgroupupdate.dontknow": "If you didn't subscribe yourself to this event group on {{ siteName }}, someone may have accidentally typed your email instead of theirs.", + "mail.eventgroupupdate.dontknowhtml": "If you didn't subscribe yourself to this event group on {{ siteName }}, someone may have accidentally typed your email instead of theirs. Click here to unsubscribe", + "mail.eventgroupupdate.grouplink": "Click here to see the event group", + "mail.eventgroupupdate.holduphtml": "Hold up - I don't want to receive these emails any more!", + "mail.eventgroupupdate.link": "The event is '{{ eventName }}'", + "mail.eventgroupupdate.preface": "A new event has been added to the event group '{{ eventGroupName }}' on {{ siteName }}", + "mail.eventgroupupdate.prefacehtml": "A new event has been added to the event group '{eventGroupName}' on {{ siteName }}.", + "mail.eventgroupupdate.unsubscribe": "Click here to unsubscribe", + "mail.holdup": "Hold up - I have no idea what this email is about!", + "mail.love": "Love,", + "mail.magiclink.dontknow": "If you didn't try to create an event on {{ siteName }}, someone may have accidentally typed your email instead of theirs. Don't worry - there isn't anything you need to do. Your email address will be deleted after the magic link expires.", + "mail.magiclink.link": "This link will expire in 24 hours and can be used multiple times before then. Don't share it publicly, because it will allow anyone to create an event on your behalf!", + "mail.magiclink.preface": "Here's a magic link which will allow you to create an event on {{ siteName }}.", + "mail.removeeventattendee.dontknow": "If you didn't mark yourself as attending an event on {{siteName}}, someone may have accidentally typed your email instead of theirs. Don't worry - you won't receive any more of these emails for this event, and your email has been removed from the database.", + "mail.removeeventattendee.preface": "You have been removed from the event {{ eventName }} on {{ siteName }} by the organizer of the event.", + "mail.subscribed.desc": "You will receive emails when new events are added to the group, and can unsubscribe at any time.", + "mail.subscribed.preface": "You have been subscribed to the event group '{{eventGroupName}}' on {{ siteName }}.", + "mail.unattendevent.desc": "If you didn't mean to do this, an admin may have removed you from the event.", + "mail.unattendevent.dontknow": "If you didn't mark yourself as attending an event on {{siteName}}, someone may have accidentally typed your email instead of theirs, then removed it. Don't worry - you won't receive any more emails linked to this event.", + "mail.unattendevent.preface": "You just removed yourself from an event on {{ siteName }}. You will no longer receive update emails for this event.", "main.defaultmetadata": "An easier, quicker, and much less privacy-invading way to make and share events", "main.footnote": " Gathio version {{version}} · GitHub · Made with by Raphael and contributors", "mdsupport": "Markdown formatting\nsupported.", @@ -214,6 +266,19 @@ "reply": "Reply", "replycontent": "What would you like to reply?", "right": "Get it right!", + "routes.addeventattendeesubject": "You're RSVPed to {{ eventName }}", + "routes.addeventcommentsubject": "New comment in {{eventName}}", + "routes.deleteeventsubject": "{{ eventName }} was deleted", + "routes.event.descriptionchanged": "the event description changed", + "routes.event.difftext": "This event was just updated with new information.", + "routes.event.editedsubject": "was just edited", + "routes.event.endtimechanged": "the end time changed to ", + "routes.event.locationchanged": "the location changed to", + "routes.event.namechanged": "the event name changed to", + "routes.event.starttimechanged": "the end time changed to", + "routes.event.timezonechanged": "the time zone changed to", + "routes.removeeventattendeesubject": "You have been removed from an event", + "routes.subscribedsubject": "You have subscribed to an event group", "save": "Save changes", "saving": "Saving...", "selectfile": "Select file", @@ -248,4 +313,4 @@ "wontshow": "Will not be shown anywhere (optional).", "year-month-format": "MMMM YYYY", "youremail": "Your email" -} \ No newline at end of file +} diff --git a/locales/ja.json b/locales/ja.json index 05c1d79..04ccbd7 100644 --- a/locales/ja.json +++ b/locales/ja.json @@ -177,6 +177,58 @@ "join": "ユーザーは自分で参加登録する", "joinemaildesc": "メールアドレスを入力しておくと、このイベントについての情報を送信します。", "magiclink-invalid": "このマジックリンクは無効、または期限が切れています。再度リクエストしてください。", + "mail.addeventattendee.clicktocancel": "クリックしてキャンセル", + "mail.addeventattendee.dontknowhtml": "{{siteName}} でイベントに参加した覚えがありませんか? どなたかが自分のメールアドレスを入力したつもりで、たまたまこちらのあなた様あてに届いてしまった可能性があります。このイベントに参加したくない場合は、上のキャンセルリンクまたは削除パスワードで手続きしていただけると助かります。", + "mail.addeventattendee.eventlink": "イベントページを確認したい場合は、こちらのリンクから", + "mail.addeventattendee.preface": "{{ siteName }}でイベントへの参加を受け付けました。ありがとうございます。引きつづき、このイベントについての更新情報があればメールを送信いたします。イベント終了後、こちらのメールアドレスはイベントの情報とともに削除します。", + "mail.addeventattendee.removapasswordhtml": "また、イベントページからこちらの参加者パスワードでのキャンセルもできます", + "mail.addeventattendee.removelink": "イベント参加をキャンセル(辞退)しますか? こちらのリンクをクリック", + "mail.addeventattendee.removepassword": "また、イベントページからこちらの参加者パスワードでのキャンセルもできます", + "mail.addeventattendee.toremove": "このイベントへの参加をキャンセル(辞退)しますか?", + "mail.addeventcomment.link": "コメントを確認", + "mail.addeventcomment.preface": "{{ siteName }} であなたが参加を募っているイベントに {{ commentAuthor }} さんがコメントしました。", + "mail.addeventcomment.prefacehtml": "{{ siteName }} であなたが参加を募っているイベントに、{{ commentAuthor }} さんがコメントしました。", + "mail.createevent.desc": "イベントの編集には、こちらのボタンをクリックしてします。【このリンクは共有してはいけません!】 このリンクを知っていれば、だれでもイベントの編集が可能となります。", + "mail.createevent.preface": "イベントを作成しました!", + "mail.createevent.sharelink": "こちらのリンクで参加をよびかけましょう", + "mail.createeventgroup.done": "以上です。お元気で!", + "mail.createeventgroup.dontknow": "{{siteName}} でイベントグループを作成した覚えがありませんか? どなたかがグループを作る際に自分のメールアドレスを入力したつもりで、たまたまこちらのあなた様あてに届いてしまったのかもしれません。申し訳ございませんが、上の編集リンクからイベントグループを削除していただけば、あなた様のメールアドレスをシステムから完全に削除いたします。", + "mail.createeventgroup.editgrouplink": "イベントグループの編集する", + "mail.createeventgroup.editgrouplinkhtml": "イベントグループを編集", + "mail.createeventgroup.eventlink": "このグループにイベント(新たに作成するもの、既存のもののいずれでも)を追加する際は、「イベントグループにリンクする」のチェックボックスにチェックしてください。開いた入力欄に、以下の 2 つのコードをコピーする必要があるかもしれません :", + "mail.createeventgroup.link": "イベントグループを編集するには下のボタンをクリックするか、こちらのリンクをご利用ください", + "mail.createeventgroup.preface": "{{ siteName }} にイベントグループを作成しました。心から感謝し、歓迎します。", + "mail.createeventgroup.sharelink": "こちらのリンクで、このイベントグループのことを知らせましょう", + "mail.createeventhtml.desc": "イベントの編集には、下のボタンをクリックします。このリンクは共有してはいけません。このリンクを知っていれば、だれでもイベントの編集が可能となります。", + "mail.createeventhtml.editevent": "イベントを編集", + "mail.deleteevent.done": "{{siteName}} でイベントに参加した覚えがありませんか? どなたかがグループを作る際に自分のメールアドレスを入力したつもりで、たまたまこちらのあなた様あてに届いてしまったのかもしれません。ご心配にはおよびません。このイベントとともにあなた様のメールアドレスも、システムから削除しました。", + "mail.deleteevent.preface": "あなたが参加を予定していた {{ eventName }} のイベントは、作成した主催者により {{ siteName }} から削除されました。", + "mail.dontknow": "{{siteName}} でイベントに参加した覚えがありませんか? どなたかが自分のメールアドレスを入力したつもりで、たまたまこちらのあなた様あてに届いてしまった可能性があります。このイベントに参加したくない場合は、上のキャンセルリンクまたは削除パスワードで手続きしていただけると助かります。", + "mail.editevent.dontknow": "{{siteName}} でイベントに参加した覚えがありませんか? どなたかが自分のメールアドレスを入力したつもりで、たまたまこちらのあなた様あてに届いてしまったのかもしれません。ご心配には及びません。対応は不要です。あなた様のメールアドレスは、イベント終了後にイベントの情報とともに削除いたします。", + "mail.editevent.link": "イベントを確認", + "mail.editevent.preface": "{{ siteName }} であなたが参加を予定しているイベントに変更がありました。", + "mail.eventgroupupdate.afterlink": " ", + "mail.eventgroupupdate.beforelink": "追加されたイベント : ", + "mail.eventgroupupdate.dontknow": "{{siteName}} でイベントグループ情報を購読した覚えがありませんか? どなたかが自分のメールアドレスを入力したつもりで、たまたまこちらのあなた様あてに届いてしまったのかもしれません。", + "mail.eventgroupupdate.dontknowhtml": "{{siteName}} でイベントグループ情報を購読した覚えがありませんか? どなたかが自分のメールアドレスを入力したつもりで、たまたまこちらのあなた様あてに届いてしまったのかもしれません。こちらをクリックして購読解除してください", + "mail.eventgroupupdate.grouplink": "イベントグループを確認", + "mail.eventgroupupdate.holduphtml": "待った! - このようなメールは不要です", + "mail.eventgroupupdate.link": "追加されたイベントは '{{ eventName }}'", + "mail.eventgroupupdate.preface": "{{ siteName }} のイベントグループ、{{ eventGroupName }} に新しいイベントが登録されました", + "mail.eventgroupupdate.prefacehtml": "{{ siteName }} のイベントグループ、{{ eventGroup }} に新しいイベントが登録されました。", + "mail.eventgroupupdate.unsubscribe": "クリックして購読解除", + "mail.holdup": "待った! - このメールについて覚えがありません", + "mail.love": "今後ともよろしくお願いいたします。", + "mail.magiclink.dontknow": "{{siteName}} でイベントを作成した覚えがありませんか? どなたかが自分のメールアドレスを入力したつもりで、たまたまこちらのあなた様あてに届いてしまったのかもしれません。ご心配には及びません。対応は不要です。リンクの期限が切れた後に、こちらのあなた様のメールアドレスも削除いたします。", + "mail.magiclink.link": "このリンクの有効期限は 24 時間です。有効期限内では何度でも利用できます。このリンクを知ってさえいれば、だれでもあなたを詐称してイベントを作成できてしまいます。そのため SNS などで広く共有することは禁止します。", + "mail.magiclink.preface": "{{ siteName }} でイベントを作成するマジックリンクはこちらです。", + "mail.removeeventattendee.dontknow": "{{siteName}} でイベントに参加した覚えがありませんか? どなたかが自分のメールアドレスを入力したつもりで、たまたまこちらのあなた様あてに届いてしまったのかもしれません。ご心配には及びません。このイベントについてのメールはもう送信いたしません。こちらのあなた様のメールアドレスは、データベースから削除しました。", + "mail.removeeventattendee.preface": "{{ siteName }} のイベント、{{ eventName }} について、イベント主催者があなたの参加をキャンセルしました。", + "mail.subscribed.desc": "今後、グループに新たなイベントが登録されるたびにメールを送信します。またいつでも購読解除できます。", + "mail.subscribed.preface": "{{ siteName }} のイベントグループ、{{ eventGroupName }} の情報を購読登録しました。", + "mail.unattendevent.desc": "覚えがない場合は、管理者があなたをイベントからキャンセルした可能性があります。", + "mail.unattendevent.dontknow": "{{siteName}} でイベントに参加した覚えがありませんか? どなたかが自分のメールアドレスを入力したつもりで、たまたまこちらのあなた様あてに届いてしまったのかもしれません。ご心配には及びません。このイベントに関連するあなた様のメールアドレスは削除しました。", + "mail.unattendevent.preface": "{{ siteName }} でイベント参加をキャンセルしました。今後、このイベントについてのメールは送信しません。", "main.defaultmetadata": "より簡単に、より速く、よりプライバシー侵害の小さい、イベントを作成・共有する方法", "main.footnote": "Gathio {{version}} バージョン · GitHub · Raphael協力者たち を込めて作成しています。", "mdsupport": "Markdown 書式対応", @@ -261,4 +313,4 @@ "wontshow": "どこにも表示しません(任意)。", "year-month-format": "YYYY年MMM", "youremail": "あなたのメールアドレス" -} \ No newline at end of file +} diff --git a/src/routes.js b/src/routes.js index 49718ff..23959dd 100755 --- a/src/routes.js +++ b/src/routes.js @@ -24,6 +24,7 @@ import EventGroup from "./models/EventGroup.js"; import path from "path"; import { activityPubContentType } from "./lib/activitypub.js"; import { hashString } from "./util/generator.js"; +import i18next from "i18next"; const config = getConfig(); const domain = config.general.domain; @@ -377,7 +378,7 @@ router.post("/deleteevent/:eventID/:editToken", (req, res) => { const msg = { to: attendeeEmails, from: contactEmail, - subject: `${siteName}: ${event.name} was deleted`, + subject: `${siteName} : ` + i18next.t("routes.deleteeventsubject", {eventName: event.name}), html, }; switch (mailService) { @@ -722,7 +723,7 @@ router.post("/attendevent/:eventID", async (req, res) => { const msg = { to: req.body.attendeeEmail, from: contactEmail, - subject: `${siteName}: You're RSVPed to ${event.name}`, + subject: `${siteName} : ` + i18next.t("routes.addeventattendeesubject", {eventName: event.name}), html, }; switch (mailService) { @@ -798,7 +799,7 @@ router.get("/oneclickunattendevent/:eventID/:attendeeID", (req, res) => { const msg = { to: req.body.attendeeEmail, from: contactEmail, - subject: `${siteName}: You have been removed from an event`, + subject: `${siteName} : ` + i18next.t("routes.removeeventattendeesubject"), html, }; switch (mailService) { @@ -867,7 +868,7 @@ router.post("/removeattendee/:eventID/:attendeeID", (req, res) => { const msg = { to: req.body.attendeeEmail, from: contactEmail, - subject: `${siteName}: You have been removed from an event`, + subject: `${siteName} : ` + i18next.t("routes.removeeventattendeesubject"), html, }; switch (mailService) { @@ -945,7 +946,7 @@ router.post("/subscribe/:eventGroupID", (req, res) => { const msg = { to: subscriber.email, from: contactEmail, - subject: `${siteName}: You have subscribed to an event group`, + subject: `${siteName} : ` + i18next.t("routes.subscribedsubject"), html, }; switch (mailService) { @@ -1084,7 +1085,7 @@ router.post("/post/comment/:eventID", (req, res) => { const msg = { to: attendeeEmails, from: contactEmail, - subject: `${siteName}: New comment in ${event.name}`, + subject: `${siteName} : ` + i18next.t("routes.addeventcommentsubject", { eventName: event.name }), html, }; switch (mailService) { @@ -1212,7 +1213,7 @@ router.post("/post/reply/:eventID/:commentID", (req, res) => { const msg = { to: attendeeEmails, from: contactEmail, - subject: `${siteName}: New comment in ${event.name}`, + subject: `${siteName} : ` + i18next.t("routes.addeventcommentsubject", { eventName: event.name }), html, }; switch (mailService) { diff --git a/src/routes/event.ts b/src/routes/event.ts index de5cb4c..ca333c5 100644 --- a/src/routes/event.ts +++ b/src/routes/event.ts @@ -28,6 +28,8 @@ import ical from "ical"; import { markdownToSanitizedHTML } from "../util/markdown.js"; import { checkMagicLink, getConfigMiddleware } from "../lib/middleware.js"; import { getConfig } from "../lib/config.js"; +import i18next from "i18next"; +moment.locale(i18next.language); const config = getConfig(); @@ -409,33 +411,33 @@ router.put( : undefined, }; let diffText = - "

This event was just updated with new information.