Skip to content

Commit b8718c6

Browse files
committed
fix: added envWarning.production & russian translation for it
1 parent db152a4 commit b8718c6

3 files changed

Lines changed: 11 additions & 3 deletions

File tree

admin/src/containers/ConfigPage/index.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ const ConfigPage = () => {
3434
{appEnv === 'production' && (
3535
<Box paddingBottom={4}>
3636
<Alert variant="danger">
37-
<Typography variant="omega" fontWeight="bold">You&apos;re in the production environment</Typography><br />
38-
Please be careful when syncing your config in production.<br />
39-
Make sure you are not overriding critical config changes on import.
37+
<Typography variant="omega" fontWeight="bold">{formatMessage({ id: 'envWarning.production.heading' })}</Typography><br />
38+
{formatMessage({ id: 'envWarning.production.message_1' })}<br />
39+
{formatMessage({ id: 'envWarning.production.message_2' })}
4040
</Alert>
4141
</Box>
4242
)}

admin/src/translations/en.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
"popUpWarning.force": "Force",
1010
"popUpWarning.Confirmation": "Confirmation",
1111

12+
"envWarning.production.heading": "You're in the production environment",
13+
"envWarning.production.message_1": "Please be careful when syncing your config in production.",
14+
"envWarning.production.message_2": "Make sure you are not overriding critical config changes on import.",
15+
1216
"Header.Title": "Config Sync",
1317
"Header.Description": "Manage your database config across environments.",
1418

admin/src/translations/ru.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
"popUpWarning.force": "Принудительно",
1010
"popUpWarning.Confirmation": "Подтверждение",
1111

12+
"envWarning.production.heading": "Вы находитесь в prodoction-среде",
13+
"envWarning.production.message_1": "Пожалуйста, будьте осторожны при синхронизации конфигурации в prodoction-среде.",
14+
"envWarning.production.message_2": "Убедитесь, что вы не переопределяете важные изменения конфигурации при импорте.",
15+
1216
"Header.Title": "Config Sync",
1317
"Header.Description": "Управляйте конфигурацией своей базы данных в разных средах.",
1418

0 commit comments

Comments
 (0)