From d0d5404c8225e9adba22ae41c733c1a3f5b6cae2 Mon Sep 17 00:00:00 2001 From: zzxming Date: Sat, 14 Feb 2026 17:28:53 +0800 Subject: [PATCH 1/4] fix: dialog title switch with select --- app/components/Package/WeeklyDownloadStats.vue | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/app/components/Package/WeeklyDownloadStats.vue b/app/components/Package/WeeklyDownloadStats.vue index 9a938d7b4..ecbbfbf35 100644 --- a/app/components/Package/WeeklyDownloadStats.vue +++ b/app/components/Package/WeeklyDownloadStats.vue @@ -17,6 +17,14 @@ const route = useRoute() const chartModal = useModal('chart-modal') const hasChartModalTransitioned = shallowRef(false) +const { t } = useI18n() +const modalTitle = computed(() => { + const facet = route.query.facet as string | undefined + if (facet === 'likes') return t('package.trends.items.likes') + if (facet === 'contributors') return t('package.trends.items.contributors') + return t('package.downloads.modal_title') +}) + const isChartModalOpen = shallowRef(false) function handleModalClose() { @@ -305,7 +313,7 @@ const config = computed(() => { @@ -356,6 +364,7 @@ const config = computed(() => { padding: 0 !important; letter-spacing: 0.04rem; } + .vue-ui-sparkline text { font-family: Geist Mono, From 5558bc69b8c97db06ae1ef9d030c2cdb25bd4787 Mon Sep 17 00:00:00 2001 From: "Willow (GHOST)" Date: Sat, 14 Feb 2026 15:26:05 +0000 Subject: [PATCH 2/4] fix: use package.trends.items.downloads This seems to be more correct since this translation this removes is "Weekly Downloads" which is only applicable to the non-modal downloads chart. I assume that was just missed when the modal chart was expanded from just being weekly downloads. --- app/components/Package/WeeklyDownloadStats.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/Package/WeeklyDownloadStats.vue b/app/components/Package/WeeklyDownloadStats.vue index ecbbfbf35..c5a257ead 100644 --- a/app/components/Package/WeeklyDownloadStats.vue +++ b/app/components/Package/WeeklyDownloadStats.vue @@ -22,7 +22,7 @@ const modalTitle = computed(() => { const facet = route.query.facet as string | undefined if (facet === 'likes') return t('package.trends.items.likes') if (facet === 'contributors') return t('package.trends.items.contributors') - return t('package.downloads.modal_title') + return t('package.trends.items.downloads') }) const isChartModalOpen = shallowRef(false) From 3f57a3d7255b2d3f01a540aacfd345bf1c41455b Mon Sep 17 00:00:00 2001 From: "Willow (GHOST)" Date: Sat, 14 Feb 2026 15:26:17 +0000 Subject: [PATCH 3/4] fix: use $t --- app/components/Package/WeeklyDownloadStats.vue | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/components/Package/WeeklyDownloadStats.vue b/app/components/Package/WeeklyDownloadStats.vue index c5a257ead..cfa726002 100644 --- a/app/components/Package/WeeklyDownloadStats.vue +++ b/app/components/Package/WeeklyDownloadStats.vue @@ -17,12 +17,11 @@ const route = useRoute() const chartModal = useModal('chart-modal') const hasChartModalTransitioned = shallowRef(false) -const { t } = useI18n() const modalTitle = computed(() => { const facet = route.query.facet as string | undefined - if (facet === 'likes') return t('package.trends.items.likes') - if (facet === 'contributors') return t('package.trends.items.contributors') - return t('package.trends.items.downloads') + if (facet === 'likes') return $t('package.trends.items.likes') + if (facet === 'contributors') return $t('package.trends.items.contributors') + return $t('package.trends.items.downloads') }) const isChartModalOpen = shallowRef(false) From 9db36767b9339eca0a000c86a20a2d9c0dbf011a Mon Sep 17 00:00:00 2001 From: "Willow (GHOST)" Date: Sat, 14 Feb 2026 15:26:30 +0000 Subject: [PATCH 4/4] chore: remove unused translation --- i18n/locales/ar.json | 1 - i18n/locales/bg-BG.json | 1 - i18n/locales/de-DE.json | 1 - i18n/locales/en.json | 1 - i18n/locales/es.json | 1 - i18n/locales/fr-FR.json | 1 - i18n/locales/ja-JP.json | 1 - i18n/locales/pl-PL.json | 3 +-- i18n/locales/zh-CN.json | 1 - i18n/schema.json | 3 --- lunaria/files/ar-EG.json | 1 - lunaria/files/bg-BG.json | 1 - lunaria/files/de-DE.json | 1 - lunaria/files/en-GB.json | 1 - lunaria/files/en-US.json | 1 - lunaria/files/es-419.json | 1 - lunaria/files/es-ES.json | 1 - lunaria/files/fr-FR.json | 1 - lunaria/files/ja-JP.json | 1 - lunaria/files/pl-PL.json | 3 +-- lunaria/files/zh-CN.json | 1 - 21 files changed, 2 insertions(+), 25 deletions(-) diff --git a/i18n/locales/ar.json b/i18n/locales/ar.json index 10d5ffdf9..595aa3574 100644 --- a/i18n/locales/ar.json +++ b/i18n/locales/ar.json @@ -371,7 +371,6 @@ }, "downloads": { "title": "التنزيلات الأسبوعية", - "modal_title": "التنزيلات الأسبوعية", "analyze": "تحليل التنزيلات", "community_distribution": "عرض توزيع تبنّي المجتمع" }, diff --git a/i18n/locales/bg-BG.json b/i18n/locales/bg-BG.json index f0b7a93f9..f1ae6e875 100644 --- a/i18n/locales/bg-BG.json +++ b/i18n/locales/bg-BG.json @@ -359,7 +359,6 @@ }, "downloads": { "title": "Седмични изтегляния", - "modal_title": "Седмични изтегляния", "analyze": "Анализ на изтеглянията", "community_distribution": "Преглед на разпределението на приемането от общността" }, diff --git a/i18n/locales/de-DE.json b/i18n/locales/de-DE.json index 2fe797e67..ee3dba12a 100644 --- a/i18n/locales/de-DE.json +++ b/i18n/locales/de-DE.json @@ -369,7 +369,6 @@ }, "downloads": { "title": "Wöchentliche Downloads", - "modal_title": "Wöchentliche Downloads", "analyze": "Downloads analysieren", "community_distribution": "Community-Adoptionsverteilung ansehen" }, diff --git a/i18n/locales/en.json b/i18n/locales/en.json index 17c8c6fee..c717d9fa5 100644 --- a/i18n/locales/en.json +++ b/i18n/locales/en.json @@ -371,7 +371,6 @@ }, "downloads": { "title": "Weekly Downloads", - "modal_title": "Weekly Downloads", "analyze": "Analyze downloads", "community_distribution": "View community adoption distribution" }, diff --git a/i18n/locales/es.json b/i18n/locales/es.json index bb41738c6..d8d777f3b 100644 --- a/i18n/locales/es.json +++ b/i18n/locales/es.json @@ -367,7 +367,6 @@ }, "downloads": { "title": "Descargas Semanales", - "modal_title": "Descargas semanales", "analyze": "Analizar descargas", "community_distribution": "Ver distribución de adopción comunitaria" }, diff --git a/i18n/locales/fr-FR.json b/i18n/locales/fr-FR.json index ba2a6743b..fff5ddd2f 100644 --- a/i18n/locales/fr-FR.json +++ b/i18n/locales/fr-FR.json @@ -371,7 +371,6 @@ }, "downloads": { "title": "Téléchargements hebdo.", - "modal_title": "Téléchargements hebdomadaires", "analyze": "Analyser les téléchargements", "community_distribution": "Voir la distribution des versions téléchargées par la communauté" }, diff --git a/i18n/locales/ja-JP.json b/i18n/locales/ja-JP.json index b56c921c6..cce53c414 100644 --- a/i18n/locales/ja-JP.json +++ b/i18n/locales/ja-JP.json @@ -361,7 +361,6 @@ }, "downloads": { "title": "週間ダウンロード数", - "modal_title": "週間ダウンロード数", "analyze": "ダウンロード数を分析", "community_distribution": "コミュニティの採用分布を表示" }, diff --git a/i18n/locales/pl-PL.json b/i18n/locales/pl-PL.json index 0112ae00c..8f3ec4e33 100644 --- a/i18n/locales/pl-PL.json +++ b/i18n/locales/pl-PL.json @@ -371,8 +371,7 @@ "downloads": { "title": "Pobrania tygodniowe", "analyze": "Analizuj pobrania", - "community_distribution": "Zobacz, jak społeczność korzysta z pakietu", - "modal_title": "Pobrania tygodniowe" + "community_distribution": "Zobacz, jak społeczność korzysta z pakietu" }, "install_scripts": { "title": "Skrypty instalacji", diff --git a/i18n/locales/zh-CN.json b/i18n/locales/zh-CN.json index 7501f04c4..ce6d6ef51 100644 --- a/i18n/locales/zh-CN.json +++ b/i18n/locales/zh-CN.json @@ -371,7 +371,6 @@ }, "downloads": { "title": "每周下载量", - "modal_title": "每周下载量", "analyze": "分析下载量", "community_distribution": "查看社区采用分布" }, diff --git a/i18n/schema.json b/i18n/schema.json index 9df363be8..10aa9f93e 100644 --- a/i18n/schema.json +++ b/i18n/schema.json @@ -1117,9 +1117,6 @@ "title": { "type": "string" }, - "modal_title": { - "type": "string" - }, "analyze": { "type": "string" }, diff --git a/lunaria/files/ar-EG.json b/lunaria/files/ar-EG.json index ba6d35bd1..614f9ef9b 100644 --- a/lunaria/files/ar-EG.json +++ b/lunaria/files/ar-EG.json @@ -370,7 +370,6 @@ }, "downloads": { "title": "التنزيلات الأسبوعية", - "modal_title": "التنزيلات الأسبوعية", "analyze": "تحليل التنزيلات", "community_distribution": "عرض توزيع تبنّي المجتمع" }, diff --git a/lunaria/files/bg-BG.json b/lunaria/files/bg-BG.json index aff8579e9..eb875f8e3 100644 --- a/lunaria/files/bg-BG.json +++ b/lunaria/files/bg-BG.json @@ -358,7 +358,6 @@ }, "downloads": { "title": "Седмични изтегляния", - "modal_title": "Седмични изтегляния", "analyze": "Анализ на изтеглянията", "community_distribution": "Преглед на разпределението на приемането от общността" }, diff --git a/lunaria/files/de-DE.json b/lunaria/files/de-DE.json index 75178dc2e..74affb6cf 100644 --- a/lunaria/files/de-DE.json +++ b/lunaria/files/de-DE.json @@ -368,7 +368,6 @@ }, "downloads": { "title": "Wöchentliche Downloads", - "modal_title": "Wöchentliche Downloads", "analyze": "Downloads analysieren", "community_distribution": "Community-Adoptionsverteilung ansehen" }, diff --git a/lunaria/files/en-GB.json b/lunaria/files/en-GB.json index 2f49f7237..6d2ad1864 100644 --- a/lunaria/files/en-GB.json +++ b/lunaria/files/en-GB.json @@ -370,7 +370,6 @@ }, "downloads": { "title": "Weekly Downloads", - "modal_title": "Weekly Downloads", "analyze": "Analyze downloads", "community_distribution": "View community adoption distribution" }, diff --git a/lunaria/files/en-US.json b/lunaria/files/en-US.json index 0ae54989a..b4008d359 100644 --- a/lunaria/files/en-US.json +++ b/lunaria/files/en-US.json @@ -370,7 +370,6 @@ }, "downloads": { "title": "Weekly Downloads", - "modal_title": "Weekly Downloads", "analyze": "Analyze downloads", "community_distribution": "View community adoption distribution" }, diff --git a/lunaria/files/es-419.json b/lunaria/files/es-419.json index d402f8197..c0e8d017a 100644 --- a/lunaria/files/es-419.json +++ b/lunaria/files/es-419.json @@ -366,7 +366,6 @@ }, "downloads": { "title": "Descargas Semanales", - "modal_title": "Descargas semanales", "analyze": "Analizar descargas", "community_distribution": "Ver distribución de adopción comunitaria" }, diff --git a/lunaria/files/es-ES.json b/lunaria/files/es-ES.json index b8fc13489..6680733b0 100644 --- a/lunaria/files/es-ES.json +++ b/lunaria/files/es-ES.json @@ -366,7 +366,6 @@ }, "downloads": { "title": "Descargas Semanales", - "modal_title": "Descargas semanales", "analyze": "Analizar descargas", "community_distribution": "Ver distribución de adopción comunitaria" }, diff --git a/lunaria/files/fr-FR.json b/lunaria/files/fr-FR.json index 1e6c4bb96..cf4d846f4 100644 --- a/lunaria/files/fr-FR.json +++ b/lunaria/files/fr-FR.json @@ -370,7 +370,6 @@ }, "downloads": { "title": "Téléchargements hebdo.", - "modal_title": "Téléchargements hebdomadaires", "analyze": "Analyser les téléchargements", "community_distribution": "Voir la distribution des versions téléchargées par la communauté" }, diff --git a/lunaria/files/ja-JP.json b/lunaria/files/ja-JP.json index f78eec2e8..af9912682 100644 --- a/lunaria/files/ja-JP.json +++ b/lunaria/files/ja-JP.json @@ -360,7 +360,6 @@ }, "downloads": { "title": "週間ダウンロード数", - "modal_title": "週間ダウンロード数", "analyze": "ダウンロード数を分析", "community_distribution": "コミュニティの採用分布を表示" }, diff --git a/lunaria/files/pl-PL.json b/lunaria/files/pl-PL.json index 9779b1373..a96ef18d6 100644 --- a/lunaria/files/pl-PL.json +++ b/lunaria/files/pl-PL.json @@ -370,8 +370,7 @@ "downloads": { "title": "Pobrania tygodniowe", "analyze": "Analizuj pobrania", - "community_distribution": "Zobacz, jak społeczność korzysta z pakietu", - "modal_title": "Pobrania tygodniowe" + "community_distribution": "Zobacz, jak społeczność korzysta z pakietu" }, "install_scripts": { "title": "Skrypty instalacji", diff --git a/lunaria/files/zh-CN.json b/lunaria/files/zh-CN.json index e715baf33..9292b0a69 100644 --- a/lunaria/files/zh-CN.json +++ b/lunaria/files/zh-CN.json @@ -370,7 +370,6 @@ }, "downloads": { "title": "每周下载量", - "modal_title": "每周下载量", "analyze": "分析下载量", "community_distribution": "查看社区采用分布" },