Skip to content

Commit

Permalink
Update wintersday description
Browse files Browse the repository at this point in the history
  • Loading branch information
darthmaim committed Dec 10, 2024
1 parent 413e2dd commit 666d25f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
16 changes: 13 additions & 3 deletions apps/web/app/[language]/festival/wintersday/(index)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ import { db } from '@/lib/prisma';
import { linkProperties } from '@/lib/linkProperties';
import { cache } from '@/lib/cache';
import { ItemLink } from '@/components/Item/ItemLink';
import type { PageProps } from '@/lib/next';
import { getTranslate } from '@/lib/translate';

const itemIds = [
86601,
Expand All @@ -39,6 +41,7 @@ export default async function WintersdayPage() {
return (
<PageLayout>
<ItemTableContext id="wintersday">
<p><Trans id="festival.wintersday.intro"/></p>
<p><Trans id="festival.wintersday.description"/></p>
<Headline actions={<ItemTableColumnsButton/>} id="items"><Trans id="navigation.items"/></Headline>
<ItemTable query={{ where: { id: { in: itemIds }}}} defaultColumns={['item', 'rarity', 'type', 'buyPrice', 'buyPriceTrend', 'sellPrice', 'sellPriceTrend']}/>
Expand All @@ -57,6 +60,13 @@ export default async function WintersdayPage() {
);
}

export const metadata: Metadata = {
title: 'Wintersday'
};
export async function generateMetadata({ params }: PageProps): Promise<Metadata> {
const { language } = await params;
const t = getTranslate(language);

return {
title: {
absolute: `${t('festival.wintersday')} · gw2treasures.com`
}
}
}
3 changes: 2 additions & 1 deletion apps/web/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,8 @@
"fractal.urban_battleground": "Urban Battleground",
"fractal.volcanic": "Volcanic",
"festival.wintersday": "Wintersday",
"festival.wintersday.description": "Bells are ringing, snowballs are flying, and Toymaster Tixx’s fantastic golem-shaped airship is hovering over Divinity’s Reach—the traditional Tyrian celebration of Wintersday is here again!",
"festival.wintersday.intro": "Bells are ringing, snowballs are flying, and Toymaster Tixx’s fantastic golem-shaped airship is hovering over Divinity’s Reach—the traditional Tyrian celebration of Wintersday is here again!",
"festival.wintersday.description": "Keep track of your progress on all your accounts during Wintersday on gw2treasures.com.",
"festival.wintersday.items.authorize": "You need to authorize gw2treasures.com to be able to see your accounts inventories.",
"festival.wintersday.items.login": "You need to login to be able to see your accounts inventories.",
"festival.wintersday.achievements.description": "These achievements are only available during wintersday.",
Expand Down

0 comments on commit 666d25f

Please sign in to comment.