fix static armor plate title to use localized strings

Was rendering the raw lowercase layerTypeNames key instead of resolving it through strings.website.tools.tankopedia.sandbox.dynamic.shot_card.element, same pattern already used in ShotDisplayCard.
This commit is contained in:
Mark Greene committed 2026-07-10 15:41:46 +12:00
1 parent dc6c528167
commit d70225b03c
1 file changed
+5 -2
@@ -22,7 +22,7 @@ export function ArmorPlateDisplay() {
const highlightArmor = Tankopedia.use((state) => state.highlightArmor);
const developerMode = App.useDeferred((state) => state.developerMode, false);
const input = useRef<HTMLInputElement>(null);
const { locale } = useLocale();
const { locale, strings } = useLocale();
if (highlightArmor === undefined) return null;
@@ -44,7 +44,10 @@ export function ArmorPlateDisplay() {
>
<Flex direction="column">
<Text weight="bold">
{layerTypeNames[highlightArmor.type]}{" "}
{
strings.website.tools.tankopedia.sandbox.dynamic.shot_card
.element[layerTypeNames[highlightArmor.type]]
}{" "}
{highlightArmor.thickness.toFixed(0)}
<Text size="1" weight="regular">
mm