File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -132,10 +132,15 @@ const sizeTooltip = computed(() => {
132132 const chunks = [
133133 displayVersion .value &&
134134 displayVersion .value .dist .unpackedSize &&
135- ` ${formatBytes (displayVersion .value .dist .unpackedSize )} unpacked size (this package) ` ,
135+ $t (' package.stats.size_tooltip.unpacked' , {
136+ size: formatBytes (displayVersion .value .dist .unpackedSize ),
137+ }),
136138 installSize .value &&
137139 installSize .value .dependencyCount &&
138- ` ${formatBytes (installSize .value .totalSize )} total unpacked size (including all ${installSize .value .dependencyCount } dependencies for linux-x64) ` ,
140+ $t (' package.stats.size_tooltip.total' , {
141+ size: formatBytes (installSize .value .totalSize ),
142+ count: installSize .value .dependencyCount ,
143+ }),
139144 ]
140145 return chunks .filter (Boolean ).join (' \n ' )
141146})
Original file line number Diff line number Diff line change 132132 "vulns" : " Vulns" ,
133133 "updated" : " Updated" ,
134134 "view_dependency_graph" : " View dependency graph" ,
135- "inspect_dependency_tree" : " Inspect dependency tree"
135+ "inspect_dependency_tree" : " Inspect dependency tree" ,
136+ "size_tooltip" : {
137+ "unpacked" : " {size} unpacked size (this package)" ,
138+ "total" : " {size} total unpacked size (including all {count} dependencies for linux-x64)"
139+ }
136140 },
137141 "links" : {
138142 "repo" : " repo" ,
Original file line number Diff line number Diff line change 132132 "vulns" : " Vulns" ,
133133 "updated" : " Updated" ,
134134 "view_dependency_graph" : " View dependency graph" ,
135- "inspect_dependency_tree" : " Inspect dependency tree"
135+ "inspect_dependency_tree" : " Inspect dependency tree" ,
136+ "size_tooltip" : {
137+ "unpacked" : " {size} unpacked size (this package)" ,
138+ "total" : " {size} total unpacked size (including all {count} dependencies for linux-x64)"
139+ }
136140 },
137141 "links" : {
138142 "repo" : " repo" ,
You can’t perform that action at this time.
0 commit comments