Skip to content

Commit fa48ca7

Browse files
committed
fix: use readable translation keys
1 parent 245b76e commit fa48ca7

File tree

7 files changed

+15
-15
lines changed

7 files changed

+15
-15
lines changed

app/components/Compare/FacetBarChart.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,9 @@ const config = computed<VueUiHorizontalBarConfig>(() => {
115115
theme: isDarkMode.value ? 'dark' : '',
116116
a11y: {
117117
translations: {
118-
keyboardNavigation: $t('package.trends.chart_sr.keyboard_navigation_vertical'),
119-
tableAvailable: $t('package.trends.chart_sr.table_available'),
120-
tableCaption: $t('package.trends.chart_sr.table_caption'),
118+
keyboardNavigation: $t('package.trends.chart_assistive_text.keyboard_navigation_vertical'),
119+
tableAvailable: $t('package.trends.chart_assistive_text.table_available'),
120+
tableCaption: $t('package.trends.chart_assistive_text.table_caption'),
121121
},
122122
},
123123
userOptions: {

app/components/Package/TrendsChart.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1390,9 +1390,9 @@ const chartConfig = computed<VueUiXyConfig>(() => {
13901390
theme: isDarkMode.value ? 'dark' : ('' as VueDataUiTheme),
13911391
a11y: {
13921392
translations: {
1393-
keyboardNavigation: $t('package.trends.chart_sr.keyboard_navigation_horizontal'),
1394-
tableAvailable: $t('package.trends.chart_sr.table_available'),
1395-
tableCaption: $t('package.trends.chart_sr.table_caption'),
1393+
keyboardNavigation: $t('package.trends.chart_assistive_text.keyboard_navigation_horizontal'),
1394+
tableAvailable: $t('package.trends.chart_assistive_text.table_available'),
1395+
tableCaption: $t('package.trends.chart_assistive_text.table_caption'),
13961396
},
13971397
},
13981398
chart: {

app/components/Package/VersionDistribution.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,9 @@ const chartConfig = computed<VueUiXyConfig>(() => {
163163
theme: isDarkMode.value ? 'dark' : '',
164164
a11y: {
165165
translations: {
166-
keyboardNavigation: $t('package.trends.chart_sr.keyboard_navigation_horizontal'),
167-
tableAvailable: $t('package.trends.chart_sr.table_available'),
168-
tableCaption: $t('package.trends.chart_sr.table_caption'),
166+
keyboardNavigation: $t('package.trends.chart_assistive_text.keyboard_navigation_horizontal'),
167+
tableAvailable: $t('package.trends.chart_assistive_text.table_available'),
168+
tableCaption: $t('package.trends.chart_assistive_text.table_caption'),
169169
},
170170
},
171171
chart: {

app/components/Package/WeeklyDownloadStats.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -315,9 +315,9 @@ const config = computed<VueUiSparklineConfig>(() => {
315315
return {
316316
a11y: {
317317
translations: {
318-
keyboardNavigation: $t('package.trends.chart_sr.keyboard_navigation_horizontal'),
319-
tableAvailable: $t('package.trends.chart_sr.table_available'),
320-
tableCaption: $t('package.trends.chart_sr.table_caption'),
318+
keyboardNavigation: $t('package.trends.chart_assistive_text.keyboard_navigation_horizontal'),
319+
tableAvailable: $t('package.trends.chart_assistive_text.table_available'),
320+
tableCaption: $t('package.trends.chart_assistive_text.table_caption'),
321321
},
322322
},
323323
theme: 'dark',

i18n/locales/en.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@
482482
"maintainer_template": "{avatar} {char126}{name}"
483483
},
484484
"trends": {
485-
"chart_sr": {
485+
"chart_assistive_text": {
486486
"keyboard_navigation_horizontal": "Use the left and right arrow keys to cycle through data points.",
487487
"keyboard_navigation_vertical": "Use the up and down arrow keys to cycle through data points.",
488488
"table_available": "A data table for this chart is available below.",

i18n/locales/fr-FR.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@
449449
"show_less": "(afficher moins)"
450450
},
451451
"trends": {
452-
"chart_sr": {
452+
"chart_assistive_text": {
453453
"keyboard_navigation_horizontal": "Utilisez les touches fléchées gauche et droite pour parcourir les points de données.",
454454
"keyboard_navigation_vertical": "Utilisez les touches fléchées haut et bas pour parcourir les points de données.",
455455
"table_available": "Un tableau de données pour ce graphique est disponible ci-dessous.",

i18n/schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1450,7 +1450,7 @@
14501450
"trends": {
14511451
"type": "object",
14521452
"properties": {
1453-
"chart_sr": {
1453+
"chart_assistive_text": {
14541454
"type": "object",
14551455
"properties": {
14561456
"keyboard_navigation_horizontal": {

0 commit comments

Comments
 (0)