[READ-ONLY] a fast, modern browser for the npm registry
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: add translations for button titles (#300)

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

authored by

Alec Lloyd Probert
autofix-ci[bot]
and committed by
GitHub
4f6c5d98 f0cf42e2

+18 -4
+6
app/components/PackageDownloadAnalytics.vue
··· 467 467 table: false, 468 468 tooltip: false, 469 469 }, 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 + }, 470 476 callbacks: { 471 477 img: ({ imageUri }: { imageUri: string }) => { 472 478 loadFile(
+3 -1
i18n/locales/en.json
··· 220 220 "end_date": "End", 221 221 "no_data": "No download data available", 222 222 "loading": "Loading...", 223 - "y_axis_label": "{granularity} downloads" 223 + "y_axis_label": "{granularity} downloads", 224 + "download_file": "Download {fileType}", 225 + "toggle_annotator": "Toggle annotator" 224 226 }, 225 227 "install_scripts": { 226 228 "title": "Install Scripts",
+3 -1
i18n/locales/fr-FR.json
··· 179 179 "end_date": "Fin", 180 180 "no_data": "Aucune donnée de téléchargement disponible", 181 181 "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" 183 185 }, 184 186 "install_scripts": { 185 187 "title": "Scripts d'installation",
+3 -1
lunaria/files/en-US.json
··· 220 220 "end_date": "End", 221 221 "no_data": "No download data available", 222 222 "loading": "Loading...", 223 - "y_axis_label": "{granularity} downloads" 223 + "y_axis_label": "{granularity} downloads", 224 + "download_file": "Download {fileType}", 225 + "toggle_annotator": "Toggle annotator" 224 226 }, 225 227 "install_scripts": { 226 228 "title": "Install Scripts",
+3 -1
lunaria/files/fr-FR.json
··· 179 179 "end_date": "Fin", 180 180 "no_data": "Aucune donnée de téléchargement disponible", 181 181 "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" 183 185 }, 184 186 "install_scripts": { 185 187 "title": "Scripts d'installation",