Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 16 additions & 11 deletions app/pages/settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,6 @@ defineOgImageComponent('Default', {
</div>
</section>

<!-- LANGUAGE Section -->
<section>
<h2 class="text-xs text-fg-subtle uppercase tracking-wider mb-4">
{{ $t('settings.sections.language') }}
Expand All @@ -214,16 +213,22 @@ defineOgImageComponent('Default', {
<label for="language-select" class="block text-sm text-fg font-medium">
{{ $t('settings.language') }}
</label>
<select
id="language-select"
:value="locale"
class="w-full sm:w-auto min-w-48 bg-bg border border-border rounded-md px-3 py-2 text-sm text-fg focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-fg/50 cursor-pointer"
@change="setLocale(($event.target as HTMLSelectElement).value as typeof locale)"
>
<option v-for="loc in availableLocales" :key="loc.code" :value="loc.code">
{{ loc.name }}
</option>
</select>

<ClientOnly>
<select
id="language-select"
:value="locale"
class="w-full sm:w-auto min-w-48 bg-bg border border-border rounded-md px-3 py-2 text-sm text-fg focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-fg/50 cursor-pointer"
@change="setLocale(($event.target as HTMLSelectElement).value as typeof locale)"
>
<option v-for="loc in availableLocales" :key="loc.code" :value="loc.code">
{{ loc.name }}
</option>
</select>
<template #fallback>
<span class="skeleton block w-48 h-8" />
</template>
</ClientOnly>
</div>

<!-- Translation helper for non-source locales -->
Expand Down
2 changes: 1 addition & 1 deletion lunaria/files/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@
},
"contributors": {
"title": "Contributors",
"description": "npmx is fully open source, built by an amazing community of contributors.",
"description": "npmx is fully open source, built by an amazing community of contributors. Join us and let's build the npm browsing experience we always wanted, together.",
"loading": "Loading contributors...",
"error": "Failed to load contributors",
"view_profile": "View {name}'s GitHub profile"
Expand Down