diff --git a/web-next/app/[locale]/quest-character/page.tsx b/web-next/app/[locale]/quest-character/page.tsx index 602d004..270dcb3 100644 --- a/web-next/app/[locale]/quest-character/page.tsx +++ b/web-next/app/[locale]/quest-character/page.tsx @@ -66,7 +66,7 @@ export default async function QuestCharacterPage({ params }: { params: Promise<{ {o.link ? (
  • {t.rich('quest.hodir', { - hodir: (c) => {c}, - lille: (c) => {c}, + hodir: (c) => {c}, + lille: (c) => {c}, })}
  • diff --git a/web-next/components/RecruitPanel.tsx b/web-next/components/RecruitPanel.tsx index 834ed43..33a7757 100644 --- a/web-next/components/RecruitPanel.tsx +++ b/web-next/components/RecruitPanel.tsx @@ -78,7 +78,7 @@ export function RecruitPanel({ <> = { es: 'es' } + +function wowheadDomain(locale: string): string { + const code = LOCALE_WH_CODE[locale] + return code ? `${code}.wotlk` : 'wotlk' +} + +/** + * Valor del atributo `data-wowhead`, para que el tooltip salga en la rama WotLK + * y EN EL IDIOMA de la web. El `domain` lleva el idioma (p.ej. `es.wotlk`) porque + * el script prioriza este atributo sobre el subdominio del href; sin el idioma + * aquí, el tooltip saldría en inglés aunque el enlace sea es.wowhead.com. + */ +export function wowheadData(type: WowheadType, id: number | string, locale: string): string { + return `${type}=${id}&domain=${wowheadDomain(locale)}` }