Skip to content

Commit 5834b72

Browse files
committed
Merge remote-tracking branch 'origin/main' into feat-add-nvmrc-file
2 parents 42ea33d + 97f0582 commit 5834b72

13 files changed

Lines changed: 40 additions & 14 deletions

File tree

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
},

app/components/Readme.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,7 @@ function handleClick(event: MouseEvent) {
291291
height: 1.25rem;
292292
position: absolute;
293293
top: 1rem;
294+
left: 1rem;
294295
}
295296
296297
.readme :deep(blockquote[data-callout] > p:first-child) {

app/utils/prehydrate.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ export function initPreferencesOnPrehydrate() {
1616
const validPMs = new Set(['npm', 'pnpm', 'yarn', 'bun', 'deno', 'vlt'])
1717

1818
// Read settings from localStorage
19-
const settings = JSON.parse(localStorage.getItem('npmx-settings') || '{}')
19+
const settings = JSON.parse(
20+
localStorage.getItem('npmx-settings') || '{}',
21+
) as Partial<AppSettings>
2022

2123
const accentColorId = settings.accentColorId
2224
if (accentColorId && accentColorIds.has(accentColorId)) {

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/es.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@
125125
"end_of_results": "Fin de los resultados",
126126
"try_again": "Intentar de nuevo",
127127
"close": "Cerrar",
128+
"or": "o",
128129
"retry": "Reintentar",
129130
"copy": "copiar",
130131
"copied": "¡copiado!",
@@ -296,7 +297,8 @@
296297
"recent_versions_only_tooltip": "Mostrar solo versiones publicadas en el último año.",
297298
"show_low_usage": "Mostrar versiones de bajo uso",
298299
"show_low_usage_tooltip": "Incluir grupos de versiones con menos del 1% de las descargas totales.",
299-
"date_range_tooltip": "Solo la última semana de distribución de versiones"
300+
"date_range_tooltip": "Solo la última semana de distribución de versiones",
301+
"y_axis_label": "Descargas"
300302
},
301303
"dependencies": {
302304
"title": "Dependencias ({count})",
@@ -471,7 +473,8 @@
471473
"warning": "ADVERTENCIA",
472474
"warning_text": "Esto permite a npmx acceder a tu CLI de npm. Conéctate solo a sitios en los que confíes.",
473475
"connect": "Conectar",
474-
"connecting": "Conectando..."
476+
"connecting": "Conectando...",
477+
"auto_open_url": "Abrir automáticamente la página de autenticación"
475478
}
476479
},
477480
"operations": {
@@ -487,7 +490,9 @@
487490
"otp_placeholder": "Introduce código OTP...",
488491
"otp_label": "Contraseña de un solo uso",
489492
"retry_otp": "Reintentar con OTP",
493+
"retry_web_auth": "Reintentar con autenticación web",
490494
"retrying": "Reintentando...",
495+
"open_web_auth": "Abrir enlace de autenticación web",
491496
"approve_operation": "Aprobar operación",
492497
"remove_operation": "Eliminar operación",
493498
"approve_all": "Aprobar Todo",

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/es-419.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@
124124
"end_of_results": "Fin de los resultados",
125125
"try_again": "Intentar de nuevo",
126126
"close": "Cerrar",
127+
"or": "o",
127128
"retry": "Reintentar",
128129
"copy": "copiar",
129130
"copied": "¡copiado!",
@@ -295,7 +296,8 @@
295296
"recent_versions_only_tooltip": "Mostrar solo versiones publicadas en el último año.",
296297
"show_low_usage": "Mostrar versiones de bajo uso",
297298
"show_low_usage_tooltip": "Incluir grupos de versiones con menos del 1% de las descargas totales.",
298-
"date_range_tooltip": "Solo la última semana de distribución de versiones"
299+
"date_range_tooltip": "Solo la última semana de distribución de versiones",
300+
"y_axis_label": "Descargas"
299301
},
300302
"dependencies": {
301303
"title": "Dependencias ({count})",
@@ -470,7 +472,8 @@
470472
"warning": "ADVERTENCIA",
471473
"warning_text": "Esto permite a npmx acceder a tu CLI de npm. Conéctate solo a sitios en los que confíes.",
472474
"connect": "Conectar",
473-
"connecting": "Conectando..."
475+
"connecting": "Conectando...",
476+
"auto_open_url": "Abrir automáticamente la página de autenticación"
474477
}
475478
},
476479
"operations": {
@@ -486,7 +489,9 @@
486489
"otp_placeholder": "Introduce código OTP...",
487490
"otp_label": "Contraseña de un solo uso",
488491
"retry_otp": "Reintentar con OTP",
492+
"retry_web_auth": "Reintentar con autenticación web",
489493
"retrying": "Reintentando...",
494+
"open_web_auth": "Abrir enlace de autenticación web",
490495
"approve_operation": "Aprobar operación",
491496
"remove_operation": "Eliminar operación",
492497
"approve_all": "Aprobar Todo",

0 commit comments

Comments
 (0)