Skip to content

Commit 4248add

Browse files
committed
feat: update localization for important notes in English, Persian, and Russian
- Added new localization key for 'important-note-description-value' in all three languages. - Updated the 'important-note' text in Russian for clarity. - Enhanced the error accordion widget to display the new localization key alongside existing descriptions.
1 parent ebe4fa3 commit 4248add

File tree

4 files changed

+13
-8
lines changed

4 files changed

+13
-8
lines changed

public/locales/en/remnawave.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@
196196
"widget": {
197197
"last-error-message": "Last error message",
198198
"important-note-description": "In order to connect node, you need to run Remnawave Node with the following",
199+
"important-note-description-value": "value. Copy and paste it into the Remnanode ",
199200
"important-note": "Important note"
200201
}
201202
},
@@ -534,4 +535,4 @@
534535
}
535536
}
536537
}
537-
}
538+
}

public/locales/fa/remnawave.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,8 @@
196196
"widget": {
197197
"last-error-message": "آخرین پیام خطا",
198198
"important-note-description": "برای اتصال نود، شما نیاز دارید که Remnanode را با موارد زیر اجرا کنید",
199-
"important-note": "یادداشت مهم"
199+
"important-note": "یادداشت مهم",
200+
"important-note-description-value": "ارزش \nکپی و چسباندن آن در Remnanode"
200201
}
201202
},
202203
"node-card": {
@@ -534,4 +535,4 @@
534535
}
535536
}
536537
}
537-
}
538+
}

public/locales/ru/remnawave.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,8 @@
196196
"widget": {
197197
"last-error-message": "Последнее сообщение об ошибке",
198198
"important-note-description": "Чтобы подключить ноду, Вам нужно запустить Remnawave Node со следующим",
199-
"important-note": "Важно"
199+
"important-note": "Важная информация",
200+
"important-note-description-value": "значением. \nСкопируйте и вставьте его в Remnanode "
200201
}
201202
},
202203
"node-card": {

src/widgets/dashboard/nodes/modal-accordeon-widget/error-accordeon.widget.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,18 @@ export const ModalAccordionWidget = (props: IProps) => {
2525
return (
2626
<Accordion defaultValue={accordionValue} key={node?.uuid} radius="md" variant="contained">
2727
<Accordion.Item value="info">
28-
<Accordion.Control icon={<PiInfo color="gray" size={'1.50rem'} />}>
28+
<Accordion.Control icon={<PiInfo color="red" size={'1.50rem'} />}>
2929
{t('error-accordeon.widget.important-note')}
3030
</Accordion.Control>
3131
<Accordion.Panel>
3232
<Stack gap={'0'}>
3333
<Text>
34-
{t('error-accordeon.widget.important-note-description')}{' '}
35-
<Code color="var(--mantine-color-blue-light)">.env</Code> value.
34+
{t('error-accordeon.widget.important-note-description')}
35+
<Code color="var(--mantine-color-blue-light)">.env</Code>
36+
{t('error-accordeon.widget.important-note-description-value')}
37+
<Code color="var(--mantine-color-blue-light)">.env</Code>
3638
</Text>
37-
<Group justify="flex-end">
39+
<Group justify="flex-end" mt="md">
3840
<CopyButton value={`SSL_CERT="${pubKey?.pubKey.trimEnd()}"`}>
3941
{({ copied, copy }) => (
4042
<ActionIcon

0 commit comments

Comments
 (0)