mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-11-12 22:29:53 -06:00
Drop unneeded as any casts on translation keys so they are type-checked again
This commit is contained in:
@@ -116,8 +116,8 @@ export function BuildCard({
|
||||
{modes.map((mode) => (
|
||||
<Image
|
||||
key={mode}
|
||||
alt={t(`game-misc:MODE_LONG_${mode}` as any)}
|
||||
title={t(`game-misc:MODE_LONG_${mode}` as any)}
|
||||
alt={t(`game-misc:MODE_LONG_${mode}`)}
|
||||
title={t(`game-misc:MODE_LONG_${mode}`)}
|
||||
path={modeImageUrl(mode)}
|
||||
containerClassName={styles.mode}
|
||||
className={styles.modeImage}
|
||||
@@ -407,7 +407,7 @@ function AllWeaponsList({
|
||||
to={weaponBuildPageUrl(weapon)}
|
||||
icon={<WeaponCircle weapon={weapon} />}
|
||||
>
|
||||
{t(`weapons:MAIN_${weapon.weaponSplId}` as any)}
|
||||
{t(`weapons:MAIN_${weapon.weaponSplId}`)}
|
||||
</ListLink>
|
||||
))}
|
||||
</div>
|
||||
@@ -426,7 +426,7 @@ function RoundWeaponImage({
|
||||
return (
|
||||
<Link
|
||||
to={weaponBuildPageUrl(weapon)}
|
||||
title={t(`weapons:MAIN_${weapon.weaponSplId}` as any)}
|
||||
title={t(`weapons:MAIN_${weapon.weaponSplId}`)}
|
||||
className={styles.weaponLink}
|
||||
>
|
||||
<WeaponCircle weapon={weapon} isSmall={isSmall} />
|
||||
|
||||
@@ -63,7 +63,7 @@ export default function OgImages() {
|
||||
<div className={styles.grid}>
|
||||
{OG_IMAGE_PAGES.map((page) => (
|
||||
<PreviewCard key={page} label={`${page}.png`}>
|
||||
<PageOg page={page} title={t(`common:pages.${page}` as any)} />
|
||||
<PageOg page={page} title={t(`common:pages.${page}`)} />
|
||||
</PreviewCard>
|
||||
))}
|
||||
</div>
|
||||
|
||||
@@ -70,7 +70,7 @@ function DamageComboBar({
|
||||
key={index}
|
||||
segment={segment}
|
||||
totalDamage={totalWithInk}
|
||||
damageTypeLabel={t(`analyzer:damage.${segment.damageType}` as any)}
|
||||
damageTypeLabel={t(`analyzer:damage.${segment.damageType}`)}
|
||||
onToggleFilter={onToggleFilter}
|
||||
/>
|
||||
))}
|
||||
@@ -234,7 +234,7 @@ function FilteredItem({ filterKey, onRestore }: FilteredItemProps) {
|
||||
isSubWeapon={filterKey.weaponType === "sub"}
|
||||
isSpecialWeapon={filterKey.weaponType === "special"}
|
||||
/>
|
||||
<span>{t(`analyzer:damage.${filterKey.damageType}` as any)}</span>
|
||||
<span>{t(`analyzer:damage.${filterKey.damageType}`)}</span>
|
||||
</button>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -212,7 +212,7 @@ function SupportTable() {
|
||||
</SendouButton>
|
||||
}
|
||||
>
|
||||
{t(`support.perk.${perk.name}.extra` as any)}
|
||||
{t(`support.perk.${perk.name}.extra`)}
|
||||
</SendouPopover>
|
||||
</>
|
||||
) : null}
|
||||
|
||||
@@ -135,10 +135,8 @@ export default function WelcomePage() {
|
||||
<h1 className="text-xl">{t("welcome:title")}</h1>
|
||||
{SECTION_KEYS.map((sectionKey) => (
|
||||
<section key={sectionKey} className="stack sm">
|
||||
<h2 className="text-lg">
|
||||
{t(`welcome:${sectionKey}.header` as any)}
|
||||
</h2>
|
||||
{(t(`welcome:${sectionKey}.body` as any) as string)
|
||||
<h2 className="text-lg">{t(`welcome:${sectionKey}.header`)}</h2>
|
||||
{(t(`welcome:${sectionKey}.body`) as string)
|
||||
.split("\n\n")
|
||||
.map((paragraph) => (
|
||||
<ParagraphWithPagePills key={paragraph} text={paragraph} />
|
||||
|
||||
@@ -175,7 +175,7 @@ function ObjectDamagePage({ weapon }: { weapon: AnyWeapon }) {
|
||||
handleChange({ newDamageType: optionDamageType })
|
||||
}
|
||||
>
|
||||
{t(`analyzer:damage.${optionDamageType}` as any)}
|
||||
{t(`analyzer:damage.${optionDamageType}`)}
|
||||
</SendouChipRadio>
|
||||
))}
|
||||
</SendouChipRadioGroup>
|
||||
@@ -473,7 +473,7 @@ function DamageReceiversGrid({
|
||||
})}
|
||||
</div>
|
||||
<div className="stack horizontal sm justify-center items-center">
|
||||
{t(`analyzer:damage.${damage.type}` as any)}
|
||||
{t(`analyzer:damage.${damage.type}`)}
|
||||
{damage.objectShredder ? (
|
||||
<Ability ability="OS" size="TINY" />
|
||||
) : null}
|
||||
|
||||
Reference in New Issue
Block a user