Skip to content

Commit d9a70c6

Browse files
Copilotastandrik
andcommitted
feat: add internationalization for monitoring component
Co-authored-by: astandrik <[email protected]>
1 parent 5181820 commit d9a70c6

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

src/containers/Tenant/Diagnostics/Monitoring/Monitoring.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import {cn} from '../../../../utils/cn';
22

3+
import i18n from './i18n';
4+
35
import './Monitoring.scss';
46

57
const b = cn('ydb-monitoring');
@@ -13,7 +15,7 @@ export function Monitoring({monitoringUrl}: MonitoringProps) {
1315
if (!monitoringUrl) {
1416
return (
1517
<div className={b('empty')}>
16-
<div className={b('empty-text')}>Monitoring is not available</div>
18+
<div className={b('empty-text')}>{i18n('message_not-available')}</div>
1719
</div>
1820
);
1921
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"message_not-available": "Monitoring is not available"
3+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import {registerKeysets} from '../../../../../utils/i18n';
2+
3+
import en from './en.json';
4+
5+
const COMPONENT = 'ydb-monitoring';
6+
7+
export default registerKeysets(COMPONENT, {en});

0 commit comments

Comments
 (0)