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"
|
"title": "Contributors"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"npm-version": "NPM Version",
|
"npm-version": "Npm Version",
|
||||||
"node-js": "NODE JS"
|
"pnpm-version": "Pnpm Version",
|
||||||
|
"yarn-version": "Yarn Version",
|
||||||
|
"node-js": "Node.js"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"footer": {
|
"footer": {
|
||||||
|
|
|
@ -68,7 +68,7 @@ const Engine: React.FC<Props> = ({ packageMeta }) => {
|
||||||
{engines.npm ? (
|
{engines.npm ? (
|
||||||
<EngineItem
|
<EngineItem
|
||||||
element={<Npm />}
|
element={<Npm />}
|
||||||
engineText={engines.node}
|
engineText={engines.npm}
|
||||||
title={t('sidebar.engines.npm-version')}
|
title={t('sidebar.engines.npm-version')}
|
||||||
/>
|
/>
|
||||||
) : null}
|
) : null}
|
||||||
|
@ -77,7 +77,7 @@ const Engine: React.FC<Props> = ({ packageMeta }) => {
|
||||||
<EngineItem
|
<EngineItem
|
||||||
element={<Yarn />}
|
element={<Yarn />}
|
||||||
engineText={engines.yarn}
|
engineText={engines.yarn}
|
||||||
title={t('sidebar.engines.npm-version')}
|
title={t('sidebar.engines.yarn-version')}
|
||||||
/>
|
/>
|
||||||
) : null}
|
) : null}
|
||||||
|
|
||||||
|
@ -85,7 +85,7 @@ const Engine: React.FC<Props> = ({ packageMeta }) => {
|
||||||
<EngineItem
|
<EngineItem
|
||||||
element={<Pnpm />}
|
element={<Pnpm />}
|
||||||
engineText={engines.pnpm}
|
engineText={engines.pnpm}
|
||||||
title={t('sidebar.engines.npm-version')}
|
title={t('sidebar.engines.pnpm-version')}
|
||||||
/>
|
/>
|
||||||
) : null}
|
) : null}
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
Loading…
Add table
Reference in a new issue