Skip to content

Commit

Permalink
add translation
Browse files Browse the repository at this point in the history
fix typo and merge conflict
  • Loading branch information
Maude Mensah Simpson committed Nov 1, 2021
1 parent a8b55c5 commit 61c630a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion frontend/public/components/persistent-volume-claim.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ const PVCTableRow = connect(mapStateToProps)(({ obj, metrics }) => {
const totalCapacityMetric = convertToBaseValue(obj?.status?.capacity?.storage);
const totalCapcityHumanized = humanizeBinaryBytes(totalCapacityMetric);
const usedCapacity = humanizeBinaryBytes(metrics);
const { t } = useTranslation();
return (
<>
<TableData className={tableColumnClasses[0]}>
Expand All @@ -132,7 +133,7 @@ const PVCTableRow = connect(mapStateToProps)(({ obj, metrics }) => {
title={obj.spec.volumeName}
/>
) : (
<div className="text-muted">No Persistent Volume</div>
<div className="text-muted">{t('public~No PersistentVolume')}</div>
)}
</TableData>
<TableData className={tableColumnClasses[4]}>
Expand Down
4 changes: 3 additions & 1 deletion frontend/public/locales/en/public.json
Original file line number Diff line number Diff line change
Expand Up @@ -1176,6 +1176,8 @@
"Show waiting pods with errors": "Show waiting pods with errors",
"Waiting for the first build to run successfully. You may temporarily see \"ImagePullBackOff\" and \"ErrImagePull\" errors while waiting.": "Waiting for the first build to run successfully. You may temporarily see \"ImagePullBackOff\" and \"ErrImagePull\" errors while waiting.",
"View all {{podSize}}": "View all {{podSize}}",
"Terminating": "Terminating",
"No PersistentVolume": "No PersistentVolume",
"PersistentVolumeClaim details": "PersistentVolumeClaim details",
"Label selector": "Label selector",
"Requested capacity": "Requested capacity",
Expand Down Expand Up @@ -1795,4 +1797,4 @@
"OK": "OK",
"Disabled": "Disabled",
"Enabled": "Enabled"
}
}

0 comments on commit 61c630a

Please sign in to comment.