Skip to content

Commit 2150f0a

Browse files
committed
fix: add translation for the tooltip trigger's aria-label
1 parent c27eb19 commit 2150f0a

File tree

4 files changed

+6
-1
lines changed

4 files changed

+6
-1
lines changed

app/components/Compare/FacetQuadrantChart.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ const config = computed<VueUiQuadrantConfig>(() => {
335335
<button
336336
type="button"
337337
class="i-lucide:info w-3.5 h-3.5 text-fg-muted cursor-help"
338-
:aria-label="$t('compare.quadrant_chart.title')"
338+
:aria-label="$t('compare.quadrant_chart.explanation.tooltip_help')"
339339
/>
340340
<template #content>
341341
<div class="flex flex-col gap-3">

i18n/locales/en.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1142,6 +1142,7 @@
11421142
"side_analysis_bottom_left": "The following packages are positioned on the bottom-left quadrant (low-impact): {packages}"
11431143
},
11441144
"explanation": {
1145+
"tooltip_help": "Show scoring explanation",
11451146
"introduction": "The score is calculated by combining multiple signals into two axes:",
11461147
"adoption": "Adoption: reflects usage and activity (downloads, freshness, likes)",
11471148
"efficiency": "Package efficiency: reflects footprint and quality (install size, dependencies, vulnerabilities, type support)",

i18n/locales/fr-FR.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1136,6 +1136,7 @@
11361136
"side_analysis_bottom_left": "Les paquets suivants sont positionnés dans le quadrant en bas à gauche (faible impact) : {packages}"
11371137
},
11381138
"explanation": {
1139+
"tooltip_help": "Afficher l'explication du score",
11391140
"introduction": "Le score est calculé en combinant plusieurs signaux selon deux axes :",
11401141
"adoption": "Adoption : reflète l’utilisation et l’activité (téléchargements, fraîcheur, likes)",
11411142
"efficiency": "Efficacité du paquet : reflète l’empreinte et la qualité (taille installée, dépendances, vulnérabilités, support TypeScript)",

i18n/schema.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3430,6 +3430,9 @@
34303430
"explanation": {
34313431
"type": "object",
34323432
"properties": {
3433+
"tooltip_help": {
3434+
"type": "string"
3435+
},
34333436
"introduction": {
34343437
"type": "string"
34353438
},

0 commit comments

Comments
 (0)