mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-02-17 23:45:29 -05:00
fix: display labels for engine versions (#4051)
This commit is contained in:
parent
aaec8d8a8f
commit
02ba426ceb
3 changed files with 13 additions and 5 deletions
6
.changeset/eight-squids-judge.md
Normal file
6
.changeset/eight-squids-judge.md
Normal file
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
'@verdaccio/ui-theme': patch
|
||||
'@verdaccio/ui-components': patch
|
||||
---
|
||||
|
||||
fix: display labels for engine versions
|
|
@ -128,8 +128,10 @@
|
|||
"title": "Contributors"
|
||||
},
|
||||
"engines": {
|
||||
"npm-version": "NPM Version",
|
||||
"node-js": "NODE JS"
|
||||
"npm-version": "Npm Version",
|
||||
"pnpm-version": "Pnpm Version",
|
||||
"yarn-version": "Yarn Version",
|
||||
"node-js": "Node.js"
|
||||
}
|
||||
},
|
||||
"footer": {
|
||||
|
|
|
@ -68,7 +68,7 @@ const Engine: React.FC<Props> = ({ packageMeta }) => {
|
|||
{engines.npm ? (
|
||||
<EngineItem
|
||||
element={<Npm />}
|
||||
engineText={engines.node}
|
||||
engineText={engines.npm}
|
||||
title={t('sidebar.engines.npm-version')}
|
||||
/>
|
||||
) : null}
|
||||
|
@ -77,7 +77,7 @@ const Engine: React.FC<Props> = ({ packageMeta }) => {
|
|||
<EngineItem
|
||||
element={<Yarn />}
|
||||
engineText={engines.yarn}
|
||||
title={t('sidebar.engines.npm-version')}
|
||||
title={t('sidebar.engines.yarn-version')}
|
||||
/>
|
||||
) : null}
|
||||
|
||||
|
@ -85,7 +85,7 @@ const Engine: React.FC<Props> = ({ packageMeta }) => {
|
|||
<EngineItem
|
||||
element={<Pnpm />}
|
||||
engineText={engines.pnpm}
|
||||
title={t('sidebar.engines.npm-version')}
|
||||
title={t('sidebar.engines.pnpm-version')}
|
||||
/>
|
||||
) : null}
|
||||
</Grid>
|
||||
|
|
Loading…
Add table
Reference in a new issue