diff options
| author | 2025-10-24 00:28:40 +0700 | |
|---|---|---|
| committer | 2025-10-24 00:28:40 +0700 | |
| commit | adcd8cf82f7ec4027701643c545b1f27a7cfc221 (patch) | |
| tree | d3a0d95c851108447b6ce55b5326943d3581126c /locale | |
| parent | f101d6a555c6d3453def332f2c230b37ae5c81b4 (diff) | |
| download | web-adcd8cf82f7ec4027701643c545b1f27a7cfc221.tar.gz web-adcd8cf82f7ec4027701643c545b1f27a7cfc221.zip | |
feat: send new blog posts to subscribers
Diffstat (limited to 'locale')
| -rw-r--r-- | locale/localization.en.yaml | 5 | ||||
| -rw-r--r-- | locale/localization.go | 9 | ||||
| -rw-r--r-- | locale/localization.ru.yaml | 3 |
3 files changed, 13 insertions, 4 deletions
diff --git a/locale/localization.en.yaml b/locale/localization.en.yaml index ce334d9..8981c49 100644 --- a/locale/localization.en.yaml +++ b/locale/localization.en.yaml @@ -26,6 +26,7 @@ Metadata: Published: 'Published' Action: 'Took place on' Mail: + UnsubscribeFooter: 'If this letter got you in a bad mood, you can unsubscribe from my blog by this link.' VerifyEmail: Subject: 'Verification Link for SAYA.TODAY is waiting for you!' Welcome: 'Greetings!' @@ -34,7 +35,9 @@ Mail: InputCode: "Or input this code on the personal page:" IfRandom: 'If you are unsure what this letter this, you can ignore it, and also, if you are interested, you may visit my site :)' NewPost: - Subject: 'New post arrived at SAYA.TODAY!' + Subject: 'A new post arrived at SAYA.TODAY!' + Intro: 'A new post came!' + CapturedOn: 'Captured on' UserProfile: Header: 'Personal Settings' EmailHeader: 'E-Mail' diff --git a/locale/localization.go b/locale/localization.go index 1028c9e..b3a1613 100644 --- a/locale/localization.go +++ b/locale/localization.go @@ -52,8 +52,9 @@ type MetadataConfig struct { } type MailConfig struct { - VerifyEmail VerifyEmailConfig `yaml:"VerifyEmail" json:"VerifyEmail"` - NewPost NewPostConfig `yaml:"NewPost" json:"NewPost"` + UnsubscribeFooter string `yaml:"UnsubscribeFooter" json:"UnsubscribeFooter"` + VerifyEmail VerifyEmailConfig `yaml:"VerifyEmail" json:"VerifyEmail"` + NewPost NewPostConfig `yaml:"NewPost" json:"NewPost"` } type VerifyEmailConfig struct { @@ -66,7 +67,9 @@ type VerifyEmailConfig struct { } type NewPostConfig struct { - Subject string `yaml:"Subject" json:"Subject"` + Subject string `yaml:"Subject" json:"Subject"` + CapturedOn string `yaml:"CapturedOn" json:"CapturedOn"` + Intro string `yaml:"Intro" json:"Intro"` } type UserProfileConfig struct { diff --git a/locale/localization.ru.yaml b/locale/localization.ru.yaml index 8894e22..c09ad16 100644 --- a/locale/localization.ru.yaml +++ b/locale/localization.ru.yaml @@ -26,6 +26,7 @@ Metadata: Published: 'Опубликовано' Action: 'Время действия' Mail: + UnsubscribeFooter: 'Если данное письмо пришло вам случайно, либо вы хотите отписаться, можете перейти по этой ссылке.' VerifyEmail: Subject: 'Ссылка для верификации для подтверждения вашей почты SAYA.TODAY' Welcome: 'Приветствую!' @@ -35,6 +36,8 @@ Mail: IfRandom: 'Если ты не понимаешь, что это за спам, можешь проигнорировать это письмо, а ещё, если интересно, можешь посетить мой сайт :)' NewPost: Subject: 'Новый пост на SAYA.TODAY!' + Intro: 'Вышел новый пост!' + CapturedOn: 'Снималось' UserProfile: Header: 'Личные настройки' EmailHeader: 'E-Mail' |