Skip to content
Merged
Changes from 1 commit
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
5 changes: 3 additions & 2 deletions app/pages/[...package].vue
Original file line number Diff line number Diff line change
Expand Up @@ -735,12 +735,13 @@ function handleClick(event: MouseEvent) {
<dl
class="grid grid-cols-2 sm:grid-cols-11 gap-3 sm:gap-4 py-4 sm:py-6 mt-4 sm:mt-6 border-t border-b border-border"
>
<div v-if="pkg.license" class="space-y-1 sm:col-span-2">
<div class="space-y-1 sm:col-span-2">
<dt class="text-xs text-fg-subtle uppercase tracking-wider">
{{ $t('package.stats.license') }}
</dt>
<dd class="font-mono text-sm text-fg">
<LicenseDisplay :license="pkg.license" />
<LicenseDisplay v-if="pkg.license" :license="pkg.license" />
<span v-else>None</span>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Additionally to what @whitep4nth3r said here #656 (comment)

You could add the variant for english in en.json, IIRC $t('package.license.none') should be according to the naming schema for language keys.

The i18n:check for the language files should then be automagically infer that the key is missing for the respective file.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you so much @stephfh! I configured the variant in en.json, want to have a second look?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good on my machine. :D

</dd>
</div>

Expand Down
Loading