Skip to content

Commit 1679444

Browse files
mikouajidanielroeserhalp
authored
fix: use translation string for version distribution y axis label (#1398)
Co-authored-by: Daniel Roe <daniel@roe.dev> Co-authored-by: Philippe Serhal <philippe.serhal@gmail.com>
1 parent 391a327 commit 1679444

File tree

7 files changed

+14
-6
lines changed

7 files changed

+14
-6
lines changed

app/components/Package/VersionDistribution.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ const chartConfig = computed(() => {
174174
fontSize: isMobile.value ? 24 : 16,
175175
color: pending.value ? colors.value.border : colors.value.fgSubtle,
176176
axis: {
177-
yLabel: 'Downloads',
177+
yLabel: $t('package.versions.y_axis_label'),
178178
yLabelOffsetX: 12,
179179
fontSize: isMobile.value ? 32 : 24,
180180
},

i18n/locales/en.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,8 @@
297297
"recent_versions_only_tooltip": "Show only versions published within the last year.",
298298
"show_low_usage": "Show low usage versions",
299299
"show_low_usage_tooltip": "Include version groups with less than 1% of total downloads.",
300-
"date_range_tooltip": "Last week of version distributions only"
300+
"date_range_tooltip": "Last week of version distributions only",
301+
"y_axis_label": "Downloads"
301302
},
302303
"dependencies": {
303304
"title": "Dependency ({count}) | Dependencies ({count})",

i18n/locales/pl-PL.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,8 @@
288288
"more_tagged": "jeszcze {count}",
289289
"all_covered": "Wszystkie wersje są objęte powyższymi tagami",
290290
"deprecated_title": "{version} (przestarzała)",
291-
"view_all": "Zobacz wszystkie {count} wersje | Zobacz {count} wersję | Zobacz {count} wersje | Zobacz {count} wersji | Zobacz {count} wersji"
291+
"view_all": "Zobacz wszystkie {count} wersje | Zobacz {count} wersję | Zobacz {count} wersje | Zobacz {count} wersji | Zobacz {count} wersji",
292+
"y_axis_label": "Pobrania"
292293
},
293294
"dependencies": {
294295
"title": "Zależności ({count})",

i18n/schema.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -897,6 +897,9 @@
897897
},
898898
"date_range_tooltip": {
899899
"type": "string"
900+
},
901+
"y_axis_label": {
902+
"type": "string"
900903
}
901904
},
902905
"additionalProperties": false

lunaria/files/en-GB.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,8 @@
296296
"recent_versions_only_tooltip": "Show only versions published within the last year.",
297297
"show_low_usage": "Show low usage versions",
298298
"show_low_usage_tooltip": "Include version groups with less than 1% of total downloads.",
299-
"date_range_tooltip": "Last week of version distributions only"
299+
"date_range_tooltip": "Last week of version distributions only",
300+
"y_axis_label": "Downloads"
300301
},
301302
"dependencies": {
302303
"title": "Dependency ({count}) | Dependencies ({count})",

lunaria/files/en-US.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,8 @@
296296
"recent_versions_only_tooltip": "Show only versions published within the last year.",
297297
"show_low_usage": "Show low usage versions",
298298
"show_low_usage_tooltip": "Include version groups with less than 1% of total downloads.",
299-
"date_range_tooltip": "Last week of version distributions only"
299+
"date_range_tooltip": "Last week of version distributions only",
300+
"y_axis_label": "Downloads"
300301
},
301302
"dependencies": {
302303
"title": "Dependency ({count}) | Dependencies ({count})",

lunaria/files/pl-PL.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,8 @@
287287
"more_tagged": "jeszcze {count}",
288288
"all_covered": "Wszystkie wersje są objęte powyższymi tagami",
289289
"deprecated_title": "{version} (przestarzała)",
290-
"view_all": "Zobacz wszystkie {count} wersje | Zobacz {count} wersję | Zobacz {count} wersje | Zobacz {count} wersji | Zobacz {count} wersji"
290+
"view_all": "Zobacz wszystkie {count} wersje | Zobacz {count} wersję | Zobacz {count} wersje | Zobacz {count} wersji | Zobacz {count} wersji",
291+
"y_axis_label": "Pobrania"
291292
},
292293
"dependencies": {
293294
"title": "Zależności ({count})",

0 commit comments

Comments
 (0)