Skip to content

Commit 0316081

Browse files
committed
fixes
1 parent 092b17f commit 0316081

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

public/locales/en.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,5 +243,8 @@
243243
"common": {
244244
"close": "Close",
245245
"cannotLoadData": "Cannot load data"
246+
},
247+
"buttons": {
248+
"viewResource": "View resource"
246249
}
247250
}

src/components/Yaml/YamlViewButton.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { Bar, Button, Dialog } from '@ui5/webcomponents-react';
22
import { FC, useState } from 'react';
33
import { YamlLoader } from './YamlLoader.tsx';
44
import { useTranslation } from 'react-i18next';
5-
import ButtonDesign from '@ui5/webcomponents/dist/types/ButtonDesign.js';
65

76
export type ResourceProps = {
87
workspaceName?: string;
@@ -41,8 +40,8 @@ export const YamlViewButton: FC<ResourceProps> = ({
4140
</Dialog>
4241
<Button
4342
icon="document"
44-
aria-label={'View resource'}
45-
title={'View resource'}
43+
aria-label={t('buttons.viewResource')}
44+
title={t('buttons.viewResource')}
4645
onClick={() => {
4746
setIsOpen(true);
4847
}}

0 commit comments

Comments
 (0)