diff --git a/src/components/BuildingCard.astro b/src/components/BuildingCard.astro index 6db65b9..e7fdbcb 100644 --- a/src/components/BuildingCard.astro +++ b/src/components/BuildingCard.astro @@ -1,5 +1,5 @@ --- -import { getHighestWeightedLanguage, getLocales } from '../lib/utils/langDriver'; +import { getHighestWeightedLanguage, getLocales, getName } from '../lib/utils/langDriver'; interface Props { id: string; @@ -8,7 +8,7 @@ interface Props { image: string; } -const lang = await getLocales(await getHighestWeightedLanguage(Astro.request.headers.get('accept-language')), ['resources', 'game', 'buildings', 'research']); +const lang = await getLocales(await getHighestWeightedLanguage(Astro.request.headers.get('accept-language'))); --- @@ -17,7 +17,7 @@ const lang = await getLocales(await getHighestWeightedLanguage(Astro.request.hea