Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i18n(condo): add de, es and pt langs, update existing locales #5716

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
21 changes: 21 additions & 0 deletions apps/condo/domains/common/constants/locale.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,44 @@
const DE = require('dayjs/locale/de')
const EN = require('dayjs/locale/en')
const ES = require('dayjs/locale/es')
const FR = require('dayjs/locale/fr')
const PO = require('dayjs/locale/pt')
const RU = require('dayjs/locale/ru')
const SL = require('dayjs/locale/sl')
const UZ = require('dayjs/locale/uz')

const RU_LOCALE = 'ru'
const EN_LOCALE = 'en'
const UZ_LOCALE = 'uz'
const FR_LOCALE = 'fr'
const SL_LOCALE = 'sl'
const DE_LOCALE = 'de'
const ES_LOCALE = 'es'
const PO_LOCALE = 'pt'

/** @deprecated don't use this hardcode const! use conf.DEFAULT_LOCALE */
const DEFAULT_LOCALE = RU_LOCALE
const LOCALES = {
[RU_LOCALE]: RU,
[EN_LOCALE]: EN,
[UZ_LOCALE]: UZ,
[FR_LOCALE]: FR,
[SL_LOCALE]: SL,
[DE_LOCALE]: DE,
[ES_LOCALE]: ES,
[PO_LOCALE]: PO,
}

// TODO(pahaz): we also have a LANG. We need to check the locale usage and refactor it to locale or lang
module.exports = {
RU_LOCALE,
EN_LOCALE,
UZ_LOCALE,
FR_LOCALE,
SL_LOCALE,
DE_LOCALE,
ES_LOCALE,
PO_LOCALE,
DEFAULT_LOCALE,
LOCALES,
}
7 changes: 6 additions & 1 deletion apps/condo/domains/user/constants/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,13 @@ const APPLE_ID_SESSION_KEY = 'appleid'

const LOCALE_RU = 'ru'
const LOCALE_EN = 'en'
const LOCALE_UZ = 'uz'
const LOCALE_FR = 'fr'
const LOCALE_Sl = 'sl'
const LOCALE_ES = 'es'
const LOCALES = [LOCALE_RU, LOCALE_EN, LOCALE_ES]
const LOCALE_DE = 'de'
const LOCALE_PT = 'pt'
const LOCALES = [LOCALE_RU, LOCALE_EN, LOCALE_UZ, LOCALE_FR, LOCALE_Sl, LOCALE_ES, LOCALE_DE, LOCALE_PT]

module.exports = {
MIN_PASSWORD_LENGTH,
Expand Down
3,410 changes: 3,410 additions & 0 deletions apps/condo/lang/de/de.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{ message.meta.body }}
1 change: 1 addition & 0 deletions apps/condo/lang/de/messages/B2C_APP_MESSAGE_PUSH/push.njk
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{ message.meta.body }}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Just on {{ env.serverUrl }} our client left a request for opening a bank account for a property.
Property address: {{ message.meta.propertyAddress }}

Client: {{ message.meta.name }}
TIN: {{ message.meta.tin }}
Who left the request: {{ message.meta.bankAccountClient.name }}
Phone: {{ message.meta.bankAccountClient.phone }}
Email: {{ message.meta.bankAccountClient.email }}

Please contact the client, he is looking forward 🤗
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
And pay in the app
1 change: 1 addition & 0 deletions apps/condo/lang/de/messages/BILLING_RECEIPT_ADDED/push.njk
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
And pay in the app
1 change: 1 addition & 0 deletions apps/condo/lang/de/messages/BILLING_RECEIPT_ADDED/sms.njk
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Utility bill available for payment in Unitify app.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
And pay {{ message.meta.data.toPay }} {{ message.meta.data.currencyCode }} for {{ message.meta.data.category }} in the app
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
And pay in the app. Total {{ message.meta.data.toPay }} {{ message.meta.data.currencySymbol }}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Utility bill available for payment in Unitify app. Total {{ message.meta.data.toPay }} {{ message.meta.data.currencySymbol }}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
It's already paid. Good job!
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
It's already paid. Good job!
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Utility bill available in Unitify app. It's already paid. Good job!
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
And pay in the app
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
And pay in the app
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Utility bill available for payment in the Unitify app.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add your billing account number and pay in the app
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add your billing account number and pay in the app
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add your billing account number and pay in the Unitify app
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Pay for {{ message.meta.categoryName }} in Domá app. For the first payment enter account number
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Pay for {{ message.meta.categoryName }} in Domá app. For the first payment enter account number
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Pay for {{ message.meta.categoryName }} in Domá app. For the first payment enter account number
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<html style="fmargin: 0; font-family: Roboto, Arial, 'Nimbus Sans L', Helvetica, sans-serif; font-size: 18px; font-weight: 400; line-height: 32px; text-align: left;">
<body style="margin: 0; font-family: Roboto, Arial, 'Nimbus Sans L', Helvetica, sans-serif; font-size: 18px; font-weight: 400; line-height: 32px; text-align: left;">
<p style="font-family: Roboto, Arial, 'Nimbus Sans L', Helvetica, sans-serif; font-size: 18px; font-weight: 400; line-height: 32px; text-align: left;">
Hello!<br>
New billing receipt available.<br>
<br>
To download and pay for a receipt please use Unitify application.<br>
<br>
Install application:<br>
</p>
<ul style="font-family: Roboto, Arial, 'Nimbus Sans L', Helvetica, sans-serif; font-size: 18px; font-weight: 400; line-height: 32px; text-align: left;">
<li> In App Store, search for "Domiki" application</li>
<li> In Google Play, search for "Unitify" application</li>
<li> Scan QR-code on receipt or open <a href="https://clck.ru/376TNL">link</a></li>
</ul>
<p style="font-family: Roboto, Arial, 'Nimbus Sans L', Helvetica, sans-serif; font-size: 18px; font-weight: 400; line-height: 32px; text-align: left;">
Add account number in application. In «Payment» section choose receipt, click «Additional» - «Open receipt». You can download receipt at this section.
</p>
<br>
<br>
If you do not want to receive emails with receipts, please click <a
href="{{ env.serverUrl }}/api/unsubscribe?id={{ message.id }}">unsubscribe</a>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Name: {{ message.meta.organization.name }},
Tin: {{ message.meta.organization.tin }},
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{ message.meta.body }}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{ message.meta.body }}
1 change: 1 addition & 0 deletions apps/condo/lang/de/messages/CUSTOM_CONTENT_MESSAGE/sms.njk
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{ message.meta.body }}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{ message.meta.body }}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{ message.meta.body }}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{ message.meta.body }}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{ message.meta.body }}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{ message.meta.body }}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{ message.meta.body }}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{ message.meta.body }}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{ message.meta.body }}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{ message.meta.body }}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{ message.meta.data | dump | safe }}
1 change: 1 addition & 0 deletions apps/condo/lang/de/messages/DEV_PORTAL_MESSAGE/default.njk
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{ message.meta.body }}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"{{ message.meta.organizationName }}" invites you to Unitify: {{ message.meta.serverUrl }}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"{{ message.meta.organizationName }}" invites you to Unitify: {{ message.meta.serverUrl }}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"{{ message.meta.organizationName }}" invites you to Unitify: {{ env.serverUrl }}/auth/invite/{{ message.meta.inviteCode }}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
It can be paid in cash or online.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Pay for services upon request №{{ message.meta.data.ticketNumber }}. Cash or app.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Please pay for the services.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Please pay for services by ticket №{{ message.meta.data.ticketNumber }}.
25 changes: 25 additions & 0 deletions apps/condo/lang/de/messages/MESSAGE_FORWARDED_TO_SUPPORT/email.njk
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
Mobile OS: {{ message.meta.os }}
App version: {{ message.meta.appVersion }}
Email: {% if message.emailFrom %}{{ message.emailFrom | safe }}{% else %}N/A{% endif %}
Resident info:
{%- if message.meta.residentsExtraInfo.length == 0 -%}
no
{%- else -%}
{% for residentInfo in message.meta.residentsExtraInfo %}
Organization: {% if residentInfo.organization %}{{ residentInfo.organization.name }}. TIN: {{ residentInfo.organization.tin }}{% else %}N/A{% endif %}.
Address: {% if residentInfo.address %}{{ residentInfo.address | safe }}{% else %}N/A{% endif %}.
Unit: {% if residentInfo.unitName %}{{ residentInfo.unitName | safe }}{% else %}N/A{% endif %}.
Account numbers:
{%- if residentInfo.serviceConsumers.length == 0 -%}
no
{%- else -%}
{% for serviceConsumer in residentInfo.serviceConsumers %}
Number: {% if serviceConsumer.accountNumber %}{{ serviceConsumer.accountNumber | safe }}{% else %}N/A{% endif %}.
Organization: {% if serviceConsumer.organizationName %}{{ serviceConsumer.organizationName | safe }}{% else %}N/A{% endif %}.

{% endfor %}
{% endif %}

{% endfor %}
{% endif %}
Message text: {{ message.meta.text | safe }}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Let's submit meter readings?
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Let's submit meter readings?
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Let's submit meter readings?
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Submit your meter readings! Today is the last day to submit meter readings for {{message.meta.data.monthName}}.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Submit your meter readings! Today is the last day to submit meter readings for {{message.meta.data.monthName}}.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Submit your meter readings! Today is the last day to submit meter readings for {{message.meta.data.monthName}}.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
It's time to submit your meter readings! The period for submitting meter readings for {{message.meta.data.monthName}} has begun.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
It's time to submit your meter readings! The period for submitting meter readings for {{message.meta.data.monthName}} has begun.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
It's time to submit your meter readings! The period for submitting meter readings for {{message.meta.data.monthName}} has begun.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Warning! Meter for {{ message.meta.data.resource.name }} has expired verification date
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Warning! Meter for {{ message.meta.data.resource.name }} has expired verification date
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Warning! Meter for {{ message.meta.data.resource.name }} has expired verification date
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Time to do meters verification ({{ message.meta.data.resource.name }})! Do it before {{ message.meta.data.reminderDate }}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Time to do meters verification ({{ message.meta.data.resource.name }})! Do it before {{ message.meta.data.reminderDate }}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Time to do meters verification ({{ message.meta.data.resource.name }})! Do it before {{ message.meta.data.reminderDate }}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Update the app. Try out the new features in the latest version of the Unitify app
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Update the app. Try out the new features in the latest version of the Unitify app
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{ message.meta.body }}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{ message.meta.body }}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Contact your bank to fix the problem
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{%- if message.meta.data.lastTry -%}
Contact our technical support. We will help you fix the problem
{%- else -%}
Contact our support team, we will help you fix the problem. The next debit attempt will be tomorrow
{% endif %}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Check your credit card. It's probably blocked or expired
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{%- if message.meta.data.lastTry -%}
Contact our technical support. We will help you fix the problem
{%- else -%}
Contact our support team, we will help you fix the problem. The next debit attempt will be tomorrow
{% endif %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{%- if message.meta.data.lastTry -%}
Contact our technical support. We will help you fix the problem
{%- else -%}
Contact our support team, we will help you fix the problem. The next debit attempt will be tomorrow
{% endif %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{%- if message.meta.data.lastTry -%}
The utility bill amount exceeds the auto payment limit. Check out autopyment settings
{%- else -%}
Increase the autopayment limit, we will try to debit again tomorrow
{% endif %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{%- if message.meta.data.lastTry -%}
There are no new receipts for payment. You can change the auto payment settings in the app
{%- else -%}
There are no new receipts to pay today. We will try to debit again tomorrow
{% endif %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{%- if message.meta.data.lastTry -%}
Contact our technical support. We will help you fix the problem
{%- else -%}
Contact our support team, we will help you fix the problem. The next debit attempt will be tomorrow
{% endif %}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Check out the payment details
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{%- if message.meta.data.lastTry -%}
Contact our technical support. We will help you fix the problem
{%- else -%}
Contact our support team, we will help you fix the problem. The next debit attempt will be tomorrow
{% endif %}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The payment is scheduled for tomorrow, but utility bill amount exceeds the auto payment limit. Check out autopayment settings
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Payment will be made tomorrow. Make sure there are enough funds on the card
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The payment is scheduled for tomorrow, but there are no new utility bills yet
4 changes: 4 additions & 0 deletions apps/condo/lang/de/messages/REGISTER_NEW_USER/default.njk
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Phone: {{ message.meta.userPhone }}
Password: {{ message.meta.userPassword }}

Please follow link: {{ env.serverUrl }}/auth/signin
3 changes: 3 additions & 0 deletions apps/condo/lang/de/messages/REGISTER_NEW_USER/sms.njk
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Phone: {{ message.meta.userPhone }}
Password: {{ message.meta.userPassword }}
-> {{ env.serverUrl }}
1 change: 1 addition & 0 deletions apps/condo/lang/de/messages/RESET_PASSWORD/default.njk
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Click to the link to set new password: {{ env.serverUrl }}/auth/change-password?token={{ message.meta.token }}
1 change: 1 addition & 0 deletions apps/condo/lang/de/messages/RESET_PASSWORD/sms.njk
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Click to the link to set new password: {{ env.serverUrl }}/auth/change-password?token={{ message.meta.token }}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
To be able to pay your utility bills and transmit meter readings
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
To be able to pay your utility bills and transmit meter readings
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
To be able to pay your utility bills and transmit meter readings
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
App needs to be updated in order to work properly. ☺️
1 change: 1 addition & 0 deletions apps/condo/lang/de/messages/RESIDENT_UPGRADE_APP/push.njk
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
App needs to be updated in order to work properly. ☺️
1 change: 1 addition & 0 deletions apps/condo/lang/de/messages/RESIDENT_UPGRADE_APP/sms.njk
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
App needs to be updated in order to work properly. ☺️
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
If you haven't paid your {{message.meta.data.monthName}} receipt, it's in the app.
Loading