Skip to content

Commit c428e08

Browse files
committed
Localize email templates to Russian
Translated all user-facing text in email templates from English to Russian, including subjects, button labels, and message bodies. Updated pluralization and formatting to use Russian language rules and improved consistency across all notification types.
1 parent 52519c6 commit c428e08

File tree

33 files changed

+140
-135
lines changed

33 files changed

+140
-135
lines changed

workers/email/src/templates/components/event-info.twig

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,31 @@
33
<div style="display: inline-block; padding: 0 9px; border-radius: 16px; background-color: #4979e4; text-align: center; margin-bottom: 5px; margin-right: 10px;">
44
<font color="#dbe6ff" style="font-size: 12px; line-height: 20px; font-weight: 500; letter-spacing: -0.09px; color: #dbe6ff;">
55
<nobr>
6-
{{ event.newCount | abbrNumber }}&nbsp;new
6+
{{ event.newCount | abbrNumber }}&nbsp;{{ pluralize_ru(event.newCount, ['новое событие', 'новых события', 'новых событий']) }}
77
</nobr>
88
</font>
99
</div>
1010
{% endif %}
1111
{% if event.event.totalCount is not empty %}
1212
<font color="#969FB3" style="font-size: 12px; line-height: 20px;letter-spacing: 0.17px;text-align: center; color: #969FB3;">
1313
<nobr>
14-
{{ event.event.totalCount | abbrNumber }}&nbsp;total
14+
{{ event.event.totalCount | abbrNumber }}&nbsp;{{ pluralize_ru(event.event.totalCount, ['раз', 'раза', 'раз']) }}
1515
</nobr>
1616
</font>
1717
&nbsp;&nbsp;
1818
{% endif %}
1919
{% if event.daysRepeated is not empty %}
2020
<font color="#969FB3" style="font-size: 12px; line-height: 20px; letter-spacing: 0.17px;text-align: center; color: #969FB3;">
2121
<nobr>
22-
{{ event.daysRepeated }}&nbsp;days&nbsp;repeating
22+
{{ event.daysRepeated }}&nbsp;{{ pluralize_ru(event.daysRepeated, ['день', 'дня', 'дней']) }}&nbsp;повторяется
2323
</nobr>
2424
</font>
2525
&nbsp;&nbsp;
2626
{% endif %}
2727
{% if event.usersAffected %}
2828
<font color="#969FB3" style="font-size: 12px; line-height: 20px; letter-spacing: 0.17px;text-align: center; color: #969FB3;">
2929
<nobr>
30-
{{ event.usersAffected }}&nbsp;users&nbsp;affected
30+
{{ event.usersAffected }}&nbsp;{{ pluralize_ru(event.usersAffected, ['пользователь', 'пользователя', 'пользователей']) }}&nbsp;затронуто
3131
</nobr>
3232
</font>
3333
{% endif %}

workers/email/src/templates/components/layout.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@
160160
<td style="padding-top: 30px; text-align: center">
161161
<font color="#969FB3"
162162
style="font-size: 13px; line-height: 1.46; letter-spacing: 0.16px; color: #969FB3;">
163-
Made by
163+
Сделан в&nbsp;
164164
<a href="https://codex.so"
165165
style="color: inherit !important; text-decoration: none;">CodeX</a>
166166
</font>

workers/email/src/templates/emails/assignee/html.twig

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
{% else %}
2020
{{ whoAssigned.email }}
2121
{% endif %}
22-
assigned you to resolve the event
22+
поручил вам обработать событие
2323
</span>
2424
</font>
2525
</td>
@@ -28,7 +28,7 @@
2828
<tr>
2929
<td style="padding-right: 20px;padding-left: 20px;padding-bottom: 40px;">
3030
{% set url = host ~ '/project/' ~ project._id ~ '/event/' ~ event._id ~ '/overview' %}
31-
{% include '../../components/button.twig' with {href: url, label: 'View event'} %}
31+
{% include '../../components/button.twig' with {href: url, label: 'Просмотреть событие'} %}
3232
</td>
3333
</tr>
3434

@@ -39,7 +39,5 @@
3939
{% endblock %}
4040

4141
{% block unsubscribeText %}
42-
You received this email because you are currently opted in to receive such alerts via your
43-
personal notifications settings. You may adjust your preferences at any time by clicking
44-
the link above.
42+
Вы получили это письмо, потому что подписаны на получение подобных оповещений в настройках вашего профиля. Вы можете их изменить, перейдя по ссылке выше.
4543
{% endblock %}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
You're assigned: ({{ project.name | escape }}) {{ event.payload.title }}
1+
Вам поручили обработать событие в проекте «{{ project.name | escape }}»
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
{% if whoAssigned.name %}{{ whoAssigned.name | escape }}{% else %}{{ whoAssigned.email }}{% endif %} assigned you to resolve the event
1+
{% if whoAssigned.name %}{{ whoAssigned.name | escape }}{% else %}{{ whoAssigned.email }}{% endif %} поручил вам обработать событие в проекте «{{ project.name | escape }}»
22

33
{{ event.payload.title }}
44

5-
{{ event.totalCount }} total
6-
{{ daysRepeated }} {% if daysRepeated == 1 %}day{% else %}days{% endif %} repeating
7-
{{ event.usersAffected }} {% if event.usersAffected == 1 %}user{% else %}users{% endif %} affected
5+
{{ event.totalCount }} {{ pluralize_ru(event.totalCount, ['раз', 'раза', 'раз']) }}
6+
{{ daysRepeated }} {{ pluralize_ru(daysRepeated, ['день', 'дня', 'дней']) }} повторяется
7+
{{ event.usersAffected }} {{ pluralize_ru(event.usersAffected, ['пользователь', 'пользователя', 'пользователей']) }} затронуто
88

9-
View event: {{ host }}/project/{{ project._id }}/event/{{ event._id }}/overview
9+
Просмотреть событие: {{ host }}/project/{{ project._id }}/event/{{ event._id }}/overview
1010

1111
***
1212

13-
You received this email because you are currently opted in to receive such alerts via your personal notifications settings. You may adjust your preferences at any time by clicking the link: {{ host }}/account/notifications
13+
Вы получили это письмо, потому что подписаны на получение подобных оповещений в своих личных настройках. Вы можете изменить свои предпочтения в любое время, перейдя по ссылке: {{ host }}/account/notifications
1414

15-
Hawk
16-
Errors tracking system
15+
Хоук
16+
Российский трекер ошибок
1717

18-
Made by CodeX
18+
Сделан в CodeX

workers/email/src/templates/emails/block-workspace/text.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99
Хоук
1010
Российский трекер ошибок
1111

12-
Made by CodeX
12+
Сделан в CodeX

workers/email/src/templates/emails/blocked-workspace-reminder/text.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
Хоук
88
Российский трекер ошибок
99

10-
Made by CodeX
10+
Сделан в CodeX

workers/email/src/templates/emails/days-limit-almost-reached/html.twig

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,23 @@
1414
<td align="center" style="padding: 15px 0;">
1515
<font color="#dbe6ff" style="font-size: 15px; text-align: center; color: #dbe6ff; letter-spacing: 0.4px;">
1616
<span style="vertical-align: middle; display: inline-block;">
17-
{{ daysLeft | escape }} day{{ daysLeft > 1 ? 's' : '' }} left to the paid plan ending
17+
{{ daysLeft | escape }} {{ pluralize_ru(daysLeft, ['день', 'дня', 'дней']) }} до окончания платного тарифа
1818
</span>
1919
</font>
2020
</td>
2121
</tr>
2222
<tr>
2323
<td style="display: block; padding: 20px; margin-bottom: 30px; border-width: 1px; border-color: #494f5e; border-style: solid; border-radius: 10px; line-height: 1.47">
2424
<font color="#dbe6ff" style="font-size: 15px; letter-spacing: 0.4px;">
25-
Please, make sure that you have linked a card as a payment method for the workspace "{{ workspace.name | escape }}".
26-
Otherwise it will be blocked because the plan was not renewed.
25+
Пожалуйста, убедитесь, что вы привязали карту для автоматического продления тарифа в воркспейсе «{{ workspace.name | escape }}».<br>
26+
<br>
27+
Если оплата не пройдет, то мониторинг ошибок будет приостановлен.
2728
</font>
2829
</td>
2930
</tr>
3031
<tr>
3132
<td style="padding-right: 20px; padding-left: 20px; padding-bottom: 40px;">
32-
{% include '../../components/button.twig' with {href: host ~ '/workspace/' ~ workspace._id ~ '/settings/billing', label: 'Go to payment settings'} %}
33+
{% include '../../components/button.twig' with {href: host ~ '/workspace/' ~ workspace._id ~ '/settings/billing', label: 'Перейти к настройкам'} %}
3334
</td>
3435
</tr>
3536
{% endblock %}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{{ daysLeft | escape }} day{{ daysLeft > 1 ? 's' : '' }} left to the paid plan ending for workspace {{ workspace.name | escape }}!
1+
Через {{ daysLeft | escape }} {{ pluralize_ru(daysLeft, ['день', 'дня', 'дней']) }} заканчивается тариф воркспейса «{{ workspace.name | escape }}»!
Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
{{ daysLeft | escape }} day{{ daysLeft > 1 ? 's' : '' }} left to the paid plan ending for workspace {{ workspace.name | escape }}.
1+
{{ daysLeft | escape }} {{ pluralize_ru(daysLeft, ['день', 'дня', 'дней']) }} до окончания платного тарифа воркспейса «{{ workspace.name | escape }}».
22

3-
Please, check payment settings and renew the plan: {{ host }}/workspace/{{ workspace._id }}/settings/billing
3+
Если оплата не пройдет, то мониторинг ошибок будет приостановлен.
4+
5+
Пожалуйста, проверьте настройки оплаты: {{ host }}/workspace/{{ workspace._id }}/settings/billing
46

57
***
68

7-
Hawk
8-
Errors tracking system
9+
Хоук
10+
Российский трекер ошибок
911

10-
Made by CodeX
12+
Сделан в CodeX

0 commit comments

Comments
 (0)