Skip to content

Commit 4f6c5d9

Browse files
fix: add translations for button titles (#300)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
1 parent f0cf42e commit 4f6c5d9

5 files changed

Lines changed: 18 additions & 4 deletions

File tree

app/components/PackageDownloadAnalytics.vue

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,12 @@ const config = computed(() => {
467467
table: false,
468468
tooltip: false,
469469
},
470+
buttonTitles: {
471+
csv: $t('package.downloads.download_file', { fileType: 'CSV' }),
472+
img: $t('package.downloads.download_file', { fileType: 'PNG' }),
473+
pdf: $t('package.downloads.download_file', { fileType: 'PDF' }),
474+
annotator: $t('package.downloads.toggle_annotator'),
475+
},
470476
callbacks: {
471477
img: ({ imageUri }: { imageUri: string }) => {
472478
loadFile(

i18n/locales/en.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,9 @@
220220
"end_date": "End",
221221
"no_data": "No download data available",
222222
"loading": "Loading...",
223-
"y_axis_label": "{granularity} downloads"
223+
"y_axis_label": "{granularity} downloads",
224+
"download_file": "Download {fileType}",
225+
"toggle_annotator": "Toggle annotator"
224226
},
225227
"install_scripts": {
226228
"title": "Install Scripts",

i18n/locales/fr-FR.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,9 @@
179179
"end_date": "Fin",
180180
"no_data": "Aucune donnée de téléchargement disponible",
181181
"loading": "Chargement...",
182-
"y_axis_label": "Téléchargements {granularity}"
182+
"y_axis_label": "Téléchargements {granularity}",
183+
"download_file": "Télécharger {fileType}",
184+
"toggle_annotator": "Afficher/Masquer l'annotateur"
183185
},
184186
"install_scripts": {
185187
"title": "Scripts d'installation",

lunaria/files/en-US.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,9 @@
220220
"end_date": "End",
221221
"no_data": "No download data available",
222222
"loading": "Loading...",
223-
"y_axis_label": "{granularity} downloads"
223+
"y_axis_label": "{granularity} downloads",
224+
"download_file": "Download {fileType}",
225+
"toggle_annotator": "Toggle annotator"
224226
},
225227
"install_scripts": {
226228
"title": "Install Scripts",

lunaria/files/fr-FR.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,9 @@
179179
"end_date": "Fin",
180180
"no_data": "Aucune donnée de téléchargement disponible",
181181
"loading": "Chargement...",
182-
"y_axis_label": "Téléchargements {granularity}"
182+
"y_axis_label": "Téléchargements {granularity}",
183+
"download_file": "Télécharger {fileType}",
184+
"toggle_annotator": "Afficher/Masquer l'annotateur"
183185
},
184186
"install_scripts": {
185187
"title": "Scripts d'installation",

0 commit comments

Comments
 (0)