From 752f8f7d5c1e37f6f3261a9be359ac63c57c552d Mon Sep 17 00:00:00 2001 From: akadotsh Date: Sat, 11 Apr 2026 14:37:16 +0530 Subject: [PATCH 1/3] fix: avoid showing "No README is available" while README is loading --- app/pages/package/[[org]]/[name].vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/pages/package/[[org]]/[name].vue b/app/pages/package/[[org]]/[name].vue index bc10db6210..a5c75765f9 100644 --- a/app/pages/package/[[org]]/[name].vue +++ b/app/pages/package/[[org]]/[name].vue @@ -46,7 +46,7 @@ if (import.meta.server) { } // Fetch README for specific version if requested, otherwise latest -const { data: readmeData } = useLazyFetch( +const { data: readmeData, status: readmeStatus } = useLazyFetch( () => { const base = `/api/registry/readme/${packageName.value}` const version = resolvedVersion.value @@ -1040,7 +1040,10 @@ const showSkeleton = shallowRef(false) -

+

{{ $t('package.readme.no_readme') }} Date: Mon, 13 Apr 2026 23:25:47 +0530 Subject: [PATCH 2/3] fix(package-readme): avoid premature empty state and add loading/error handling --- app/pages/package/[[org]]/[name].vue | 10 ++++++++++ i18n/locales/ar.json | 3 ++- i18n/locales/az-AZ.json | 3 ++- i18n/locales/bg-BG.json | 3 ++- i18n/locales/bn-IN.json | 3 ++- i18n/locales/cs-CZ.json | 3 ++- i18n/locales/de.json | 3 ++- i18n/locales/en.json | 3 ++- i18n/locales/es-419.json | 3 ++- i18n/locales/es.json | 3 ++- i18n/locales/fr-FR.json | 3 ++- i18n/locales/hi-IN.json | 3 ++- i18n/locales/hu-HU.json | 3 ++- i18n/locales/id-ID.json | 3 ++- i18n/locales/it-IT.json | 3 ++- i18n/locales/ja-JP.json | 3 ++- i18n/locales/kn-IN.json | 3 ++- i18n/locales/mr-IN.json | 3 ++- i18n/locales/nb-NO.json | 3 ++- i18n/locales/ne-NP.json | 3 ++- i18n/locales/pl-PL.json | 3 ++- i18n/locales/pt-BR.json | 3 ++- i18n/locales/ru-RU.json | 3 ++- i18n/locales/sr-Latn-RS.json | 3 ++- i18n/locales/ta-IN.json | 3 ++- i18n/locales/te-IN.json | 3 ++- i18n/locales/tr-TR.json | 3 ++- i18n/locales/uk-UA.json | 3 ++- i18n/locales/vi-VN.json | 3 ++- i18n/locales/zh-CN.json | 3 ++- i18n/locales/zh-TW.json | 3 ++- 31 files changed, 70 insertions(+), 30 deletions(-) diff --git a/app/pages/package/[[org]]/[name].vue b/app/pages/package/[[org]]/[name].vue index a5c75765f9..c0a28ed7ea 100644 --- a/app/pages/package/[[org]]/[name].vue +++ b/app/pages/package/[[org]]/[name].vue @@ -1040,6 +1040,16 @@ const showSkeleton = shallowRef(false) +

+

+

+ {{ $t('package.readme.error_loading') }} +

Date: Mon, 13 Apr 2026 23:29:14 +0530 Subject: [PATCH 3/3] chore(i18n): update schema for readme error_loading key --- i18n/schema.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/i18n/schema.json b/i18n/schema.json index b3ccd57f64..949fc687c9 100644 --- a/i18n/schema.json +++ b/i18n/schema.json @@ -1446,6 +1446,9 @@ }, "copy_as_markdown": { "type": "string" + }, + "error_loading": { + "type": "string" } }, "additionalProperties": false