Skip to content

Commit 1a24212

Browse files
committed
Handle plural
1 parent 8cb42b5 commit 1a24212

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/labextension/src/widget.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,7 @@ const KernelUsage = (props: {
186186
</h4>
187187
{usage.host_cpu_percent && (
188188
<div className="jp-KernelUsage-separator">
189-
{usage.host_cpu_percent.toFixed(1)}% {props.trans.__('used on')}{' '}
190-
{usage.cpu_count} CPUs
189+
{props.trans._n('%2%% used on %1 CPU', '%2%% used on %1 CPUs', usage.cpu_count, usage.host_cpu_percent.toFixed(1))}
191190
</div>
192191
)}
193192
<h4 className="jp-KernelUsage-section-separator">

0 commit comments

Comments
 (0)