Skip to content

Commit dea32ec

Browse files
committed
fixes
1 parent 2a142ed commit dea32ec

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

public/locales/en.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,5 +246,8 @@
246246
},
247247
"buttons": {
248248
"viewResource": "View resource"
249+
},
250+
"yaml": {
251+
"copiedToClipboard": "YAML copied to clipboard!"
249252
}
250253
}

src/components/Projects/ProjectsList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export default function ProjectsList() {
4848
display: 'flex',
4949
justifyContent: 'start',
5050
gap: '0.5rem',
51-
alignItems: 'baseline',
51+
alignItems: 'center',
5252
width: '100%',
5353
cursor: 'pointer',
5454
}}

src/components/Yaml/YamlViewer.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@ import YAML from 'yaml';
88
import { Button, FlexBox } from '@ui5/webcomponents-react';
99
import styles from './YamlViewer.module.css';
1010
import { useToast } from '../../context/ToastContext.tsx';
11+
import { useTranslation } from 'react-i18next';
1112
type YamlViewerProps = { yamlString: string; filename: string };
1213
const YamlViewer: FC<YamlViewerProps> = ({ yamlString, filename }) => {
1314
const toast = useToast();
15+
const { t } = useTranslation();
1416
const copyToClipboard = () => {
1517
navigator.clipboard.writeText(yamlString);
16-
toast.show('YAML copied to clipboard!');
18+
toast.show(t('yaml.copiedToClipboard'));
1719
};
1820
const downloadYaml = () => {
1921
const blob = new Blob([yamlString], { type: 'text/yaml' });

0 commit comments

Comments
 (0)