feat(frontend): Make dashboard page localizable (#5727)

* Make dashboard page localizable

* dashboard sidebar

* prepr:frontend

* don't change the keys

* undo fix

* fix any err

* don't i18n csv

* prepr:frontend

* fix: do not use button key

* prepr:frontend

* capitalize string date

---------

Co-authored-by: Prospector <6166773+Prospector@users.noreply.github.com>
This commit is contained in:
xinyihl
2026-04-26 21:09:08 +08:00
committed by GitHub
parent faf593b2af
commit 453369ca07
13 changed files with 811 additions and 160 deletions

View File

@@ -44,7 +44,7 @@
v-else-if="!filteredAffiliates || filteredAffiliates.length === 0"
class="py-8 text-center"
>
<p class="text-secondary">No affiliate codes found.</p>
<p class="text-secondary">{{ formatMessage(messages.noAffiliateCodesFound) }}</p>
</div>
<div v-else class="space-y-3">
<AffiliateLinkCard
@@ -166,6 +166,10 @@ const messages = defineMessages({
id: 'dashboard.affiliate-links.error.title',
defaultMessage: 'Error loading affiliate links',
},
noAffiliateCodesFound: {
id: 'dashboard.affiliate-links.empty.no-codes',
defaultMessage: 'No affiliate codes found.',
},
revokeConfirmButton: {
id: 'dashboard.affiliate-links.revoke-confirm.button',
defaultMessage: 'Revoke',