Skip to content

Commit

Permalink
feat: update strategy description translation to use localized raid n…
Browse files Browse the repository at this point in the history
…ames
  • Loading branch information
hareeen committed Dec 3, 2024
1 parent dcc25af commit a0c68f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/[locale]/strat/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export async function generateMetadata(
const { id } = await props.params;

const t = await getTranslations('Common.Meta');
const tRaids = await getTranslations('Common.Raids');

const supabase = await createClient();

Expand All @@ -26,7 +27,7 @@ export async function generateMetadata(
}

const title = `${strategyData.name} ⬩ LLR`;
const description = t('StratDescription', { raid: strategyData.raids.name });
const description = t('StratDescription', { raid: tRaids(strategyData.raids?.semantic_key) });
const host_uri = process.env.HOST_URI;
const author = strategyData.profiles?.display_name ?? t('UnknownAuthor');

Expand Down

0 comments on commit a0c68f7

Please sign in to comment.