mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
fix: tankopedia title
This commit is contained in:
1 parent
25fe926cba
commit
afb730924c
1 file changed
+15
-1
@@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
import { fetchTankDefinitions } from '@blitzkit/core';
|
import { fetchTankDefinitions, TIER_ROMAN_NUMERALS } from '@blitzkit/core';
|
||||||
|
import strings from '@blitzkit/core/lang/en-US.json';
|
||||||
import type { GetStaticPaths } from 'astro';
|
import type { GetStaticPaths } from 'astro';
|
||||||
import ToolLayout from '../../../../layouts/ToolLayout.astro';
|
import ToolLayout from '../../../../layouts/ToolLayout.astro';
|
||||||
import { Page } from './_index';
|
import { Page } from './_index';
|
||||||
@@ -13,8 +14,21 @@ export const getStaticPaths = (async () => {
|
|||||||
}) satisfies GetStaticPaths;
|
}) satisfies GetStaticPaths;
|
||||||
|
|
||||||
const { id } = Astro.params;
|
const { id } = Astro.params;
|
||||||
|
|
||||||
|
const tankDefinitions = await fetchTankDefinitions();
|
||||||
|
const tank = tankDefinitions.tanks[id];
|
||||||
---
|
---
|
||||||
|
|
||||||
|
<title>
|
||||||
|
{tank.name} - Tier {TIER_ROMAN_NUMERALS[tank.tier]}
|
||||||
|
{
|
||||||
|
strings.common.nations_adjectives[
|
||||||
|
tank.nation as keyof typeof strings.common.nations_adjectives
|
||||||
|
]
|
||||||
|
}
|
||||||
|
{strings.common.tank_class_short[tank.class]}
|
||||||
|
</title>
|
||||||
|
|
||||||
<ToolLayout>
|
<ToolLayout>
|
||||||
<Page id={id} client:load />
|
<Page id={id} client:load />
|
||||||
</ToolLayout>
|
</ToolLayout>
|
||||||
Reference in new issue
Block a user