mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-15 13:46:09 +01:00
feat: localize tankopedia tech tree
This commit is contained in:
1 parent
ceb7842d49
commit
7900c61a9b
7 files changed
+44
-27
No files matched your search
+4
-4
@@ -151,7 +151,7 @@ export function CustomShellButton() {
|
||||
}}
|
||||
>
|
||||
<TextField.Slot side="right">
|
||||
{literals(strings.common.units_suffix.mm, [''])}
|
||||
{literals(strings.common.units.mm, [''])}
|
||||
</TextField.Slot>
|
||||
</TextField.Root>
|
||||
</Flex>
|
||||
@@ -187,7 +187,7 @@ export function CustomShellButton() {
|
||||
}}
|
||||
>
|
||||
<TextField.Slot side="right">
|
||||
{literals(strings.common.units_suffix.mm, [''])}
|
||||
{literals(strings.common.units.mm, [''])}
|
||||
</TextField.Slot>
|
||||
</TextField.Root>
|
||||
</Flex>
|
||||
@@ -211,7 +211,7 @@ export function CustomShellButton() {
|
||||
minWidth="8rem"
|
||||
>
|
||||
<Text color="gray">
|
||||
{literals(strings.common.units_suffix.deg, [
|
||||
{literals(strings.common.units.deg, [
|
||||
(customShell.normalization ?? 0).toFixed(0),
|
||||
])}
|
||||
</Text>
|
||||
@@ -241,7 +241,7 @@ export function CustomShellButton() {
|
||||
|
||||
<Flex align="center" gap="2" flexGrow="1" maxWidth="15rem">
|
||||
<Text color="gray">
|
||||
{literals(strings.common.units_suffix.deg, [
|
||||
{literals(strings.common.units.deg, [
|
||||
(customShell.ricochet ?? 90).toFixed(0),
|
||||
])}
|
||||
</Text>
|
||||
|
||||
+4
-4
@@ -55,7 +55,7 @@ export function Thicknesses({ thicknessRange }: ThicknessesProps) {
|
||||
>
|
||||
<Flex direction="column" align="end" justify="between">
|
||||
<Text color="gray" size="1">
|
||||
{literals(strings.common.units_suffix.mm, [
|
||||
{literals(strings.common.units.mm, [
|
||||
(thicknessRange.value * 1.5).toFixed(0),
|
||||
])}
|
||||
</Text>
|
||||
@@ -63,7 +63,7 @@ export function Thicknesses({ thicknessRange }: ThicknessesProps) {
|
||||
{strings.website.tools.tankopedia.sandbox.static.primary}
|
||||
</Text>
|
||||
<Text color="gray" size="1">
|
||||
{literals(strings.common.units_suffix.mm, ['0'])}
|
||||
{literals(strings.common.units.mm, ['0'])}
|
||||
</Text>
|
||||
</Flex>
|
||||
|
||||
@@ -96,7 +96,7 @@ export function Thicknesses({ thicknessRange }: ThicknessesProps) {
|
||||
>
|
||||
<Flex direction="column" align="end" justify="between">
|
||||
<Text color="gray" size="1">
|
||||
{literals(strings.common.units_suffix.mm, [
|
||||
{literals(strings.common.units.mm, [
|
||||
thicknessRange.value.toFixed(0),
|
||||
])}
|
||||
</Text>
|
||||
@@ -104,7 +104,7 @@ export function Thicknesses({ thicknessRange }: ThicknessesProps) {
|
||||
{strings.website.tools.tankopedia.sandbox.static.spaced}
|
||||
</Text>
|
||||
<Text color="gray" size="1">
|
||||
{literals(strings.common.units_suffix.mm, ['0'])}
|
||||
{literals(strings.common.units.mm, ['0'])}
|
||||
</Text>
|
||||
</Flex>
|
||||
|
||||
|
||||
@@ -127,7 +127,7 @@ export function Options({ thicknessRange, canvas }: OptionsProps) {
|
||||
>
|
||||
{!hasCustomShell && (
|
||||
<Text color="gray" size={{ initial: '1', sm: '2' }}>
|
||||
{literals(strings.common.units_suffix.mm, [
|
||||
{literals(strings.common.units.mm, [
|
||||
(
|
||||
resolvePenetrationCoefficient(
|
||||
hasCalibratedShells,
|
||||
@@ -202,7 +202,7 @@ export function Options({ thicknessRange, canvas }: OptionsProps) {
|
||||
}
|
||||
secondaryDiscriminator={
|
||||
<Text style={{ fontSize: '0.75em' }}>
|
||||
{literals(strings.common.units_suffix.mm, [
|
||||
{literals(strings.common.units.mm, [
|
||||
gun.gun_type!.value.base.shells[0].caliber.toFixed(
|
||||
0,
|
||||
),
|
||||
|
||||
Reference in new issue
Block a user