Skip to content

Commit b83b845

Browse files
committed
fix: set i18n global scope for modal components
1 parent ac177f2 commit b83b845

3 files changed

Lines changed: 8 additions & 3 deletions

File tree

app/components/Header/AuthModal.client.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ async function handleLogin() {
8787
{{ $t('auth.modal.what_is_atmosphere') }}
8888
</summary>
8989
<div class="mt-3">
90-
<i18n-t keypath="auth.modal.atmosphere_explanation" tag="p">
90+
<i18n-t keypath="auth.modal.atmosphere_explanation" tag="p" scope="global">
9191
<template #npmx>
9292
<span class="font-bold">npmx.dev</span>
9393
</template>

app/components/Header/ConnectorModal.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ function handleDisconnect() {
8888
{{ $t('connector.modal.contributor_badge') }}
8989
</span>
9090
<p class="text-sm text-fg-muted">
91-
<i18n-t keypath="connector.modal.contributor_notice">
91+
<i18n-t keypath="connector.modal.contributor_notice" scope="global">
9292
<template #link>
9393
<a
9494
href="https://github.com/npmx-dev/npmx.dev/blob/main/CONTRIBUTING.md#local-connector-cli"

app/components/Package/SkillsModal.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,12 @@ function getWarningTooltip(skill: SkillListItem): string | undefined {
9595
v-if="selectedMethod === 'skills-npm'"
9696
class="flex items-center justify-between gap-2 px-3 py-2.5 sm:px-4 bg-bg-subtle border border-border rounded-lg mb-5"
9797
>
98-
<i18n-t keypath="package.skills.compatible_with" tag="span" class="text-sm text-fg-muted">
98+
<i18n-t
99+
keypath="package.skills.compatible_with"
100+
tag="span"
101+
class="text-sm text-fg-muted"
102+
scope="global"
103+
>
99104
<template #tool>
100105
<code class="font-mono text-fg">skills-npm</code>
101106
</template>

0 commit comments

Comments
 (0)