Skip to content

Commit 5ab59d6

Browse files
committed
fix: add translations and other fixes
1 parent 23f5438 commit 5ab59d6

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

app/components/Compare/FacetQuadrantChart.vue

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -251,20 +251,20 @@ const config = computed<VueUiQuadrantConfig>(() => {
251251
customFormat: ({ datapoint }) => {
252252
const isDeprecated = !!datapoint?.category?.metrics?.deprecated
253253
return `
254-
<div class="font-mono p-3 border border-border rounded-md bg-[var(--bg)]/10 backdrop-blur-md">
254+
<div class="font-mono p-3 border border-border rounded-md bg-bg/10 backdrop-blur-md">
255255
<div class="grid grid-cols-[12px_minmax(0,1fr)_max-content] items-center gap-x-3 border-b border-border pb-2 mb-2">
256256
257257
<div class="w-3 h-3">
258258
<svg viewBox="0 0 20 20" class="w-full h-full" aria-hidden="true">
259259
<circle cx="10" cy="10" r="10" fill="${datapoint?.color ?? 'transparent'}" />
260260
</svg>
261261
</div>
262-
<span class="text-3xs uppercase tracking-wide text-[var(--fg)]/70 truncate">
263-
${datapoint?.name ?? ''}
262+
<span class="text-3xs uppercase tracking-wide text-fg/70 truncate">
263+
${sanitise(datapoint?.name ?? '')}
264264
</span>
265265
266266
<div class="text-fg-subtle text-xs border border-border rounded-sm px-1">
267-
${datapoint?.category?.license}
267+
${sanitise(datapoint?.category?.license)}
268268
</div>
269269
</div>
270270
@@ -308,7 +308,7 @@ const config = computed<VueUiQuadrantConfig>(() => {
308308
</div>
309309
<div class="flex flex-row items-baseline gap-2">
310310
<span class="text-fg-subtle">${$t('compare.facets.items.types.label')}</span>
311-
<span class="text-fg text-sm">${datapoint?.category?.metrics.types ? 'Yes' : 'No'}</span>
311+
<span class="text-fg text-sm">${datapoint?.category?.metrics.types ? $t('common.yes') : $t('common.no')}</span>
312312
</div>
313313
</div>
314314
</div>
@@ -324,7 +324,9 @@ const config = computed<VueUiQuadrantConfig>(() => {
324324
<template>
325325
<div class="font-mono">
326326
<div class="flex items-center justify-center gap-2">
327-
{{ $t('compare.quadrant_chart.title') }}
327+
<h3>
328+
{{ $t('compare.quadrant_chart.title') }}
329+
</h3>
328330
<TooltipApp interactive>
329331
<button
330332
type="button"

0 commit comments

Comments
 (0)