mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-29 21:49:50 +01:00
feat: localize tankopedia meta section
This commit is contained in:
1 parent
e0c897025e
commit
ceb7842d49
2 files changed
+45
-21
No files matched your search
@@ -827,6 +827,7 @@
|
|||||||
"seo_description": "Statistics, armor, and more for all tanks in World of Tanks Blitz",
|
"seo_description": "Statistics, armor, and more for all tanks in World of Tanks Blitz",
|
||||||
"tank_seo_title": "%s1 - Tier %s2 %s3 %s4 | %s5 Tankopedia | World of Tanks Blitz (WoTB)",
|
"tank_seo_title": "%s1 - Tier %s2 %s3 %s4 | %s5 Tankopedia | World of Tanks Blitz (WoTB)",
|
||||||
"tank_seo_description": "%s1 armor, statistics, equipment, provisions, and more. %s2 DPM, %s3hp alpha, %s4mm penetration, %s5kph top speed, %s6hp health.",
|
"tank_seo_description": "%s1 armor, statistics, equipment, provisions, and more. %s2 DPM, %s3hp alpha, %s4mm penetration, %s5kph top speed, %s6hp health.",
|
||||||
|
|
||||||
"sandbox": {
|
"sandbox": {
|
||||||
"poses": {
|
"poses": {
|
||||||
"hull_down": "Hull down",
|
"hull_down": "Hull down",
|
||||||
@@ -901,6 +902,27 @@
|
|||||||
"reset": "Reset"
|
"reset": "Reset"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
"meta": {
|
||||||
|
"back": "Back",
|
||||||
|
"compare": "Compare",
|
||||||
|
"swap": {
|
||||||
|
"button": "Swap",
|
||||||
|
"title": "Swap tanks"
|
||||||
|
},
|
||||||
|
"vanilla": "Vanilla",
|
||||||
|
"opentest": "OpenTest",
|
||||||
|
"full_name": "Full name",
|
||||||
|
"nation": "Nation",
|
||||||
|
"class": "Class",
|
||||||
|
"tier": "Tier",
|
||||||
|
"type": "Type",
|
||||||
|
"dev_id": "DEV: ID",
|
||||||
|
"purchase": "Purchase price",
|
||||||
|
"restoration": "Restoration price",
|
||||||
|
"sale": "Sale price",
|
||||||
|
"research": "Research XP"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compare": {
|
"compare": {
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ export function MetaSection() {
|
|||||||
<LinkI18n locale={locale} href="/tools/tankopedia">
|
<LinkI18n locale={locale} href="/tools/tankopedia">
|
||||||
<Button variant="outline">
|
<Button variant="outline">
|
||||||
<ChevronLeftIcon />
|
<ChevronLeftIcon />
|
||||||
Back
|
{strings.website.tools.tankopedia.meta.back}
|
||||||
</Button>
|
</Button>
|
||||||
</LinkI18n>
|
</LinkI18n>
|
||||||
|
|
||||||
@@ -57,7 +57,7 @@ export function MetaSection() {
|
|||||||
>
|
>
|
||||||
<Button variant="outline">
|
<Button variant="outline">
|
||||||
<MixIcon />
|
<MixIcon />
|
||||||
Compare
|
{strings.website.tools.tankopedia.meta.compare}
|
||||||
</Button>
|
</Button>
|
||||||
</LinkI18n>
|
</LinkI18n>
|
||||||
|
|
||||||
@@ -73,8 +73,8 @@ export function MetaSection() {
|
|||||||
<ScienceIcon height="1.25em" width="1.25em" />
|
<ScienceIcon height="1.25em" width="1.25em" />
|
||||||
{assertSecret(import.meta.env.PUBLIC_ASSET_BRANCH) ===
|
{assertSecret(import.meta.env.PUBLIC_ASSET_BRANCH) ===
|
||||||
'opentest'
|
'opentest'
|
||||||
? 'Vanilla'
|
? strings.website.tools.tankopedia.meta.vanilla
|
||||||
: 'OpenTest'}
|
: strings.website.tools.tankopedia.meta.opentest}
|
||||||
</Button>
|
</Button>
|
||||||
</Link>
|
</Link>
|
||||||
)}
|
)}
|
||||||
@@ -83,12 +83,14 @@ export function MetaSection() {
|
|||||||
<Dialog.Trigger>
|
<Dialog.Trigger>
|
||||||
<Button>
|
<Button>
|
||||||
<UpdateIcon />
|
<UpdateIcon />
|
||||||
Swap
|
{strings.website.tools.tankopedia.meta.swap.button}
|
||||||
</Button>
|
</Button>
|
||||||
</Dialog.Trigger>
|
</Dialog.Trigger>
|
||||||
|
|
||||||
<Dialog.Content>
|
<Dialog.Content>
|
||||||
<Dialog.Title>Swap tanks</Dialog.Title>
|
<Dialog.Title>
|
||||||
|
{strings.website.tools.tankopedia.meta.swap.title}
|
||||||
|
</Dialog.Title>
|
||||||
|
|
||||||
<TankSearch
|
<TankSearch
|
||||||
compact
|
compact
|
||||||
@@ -121,9 +123,11 @@ export function MetaSection() {
|
|||||||
>
|
>
|
||||||
<Flex direction="column" width="100%">
|
<Flex direction="column" width="100%">
|
||||||
{protagonist.name_full && (
|
{protagonist.name_full && (
|
||||||
<Listing label="Full-name">{protagonist.name_full}</Listing>
|
<Listing label={strings.website.tools.tankopedia.meta.full_name}>
|
||||||
|
{protagonist.name_full}
|
||||||
|
</Listing>
|
||||||
)}
|
)}
|
||||||
<Listing label="Nation">
|
<Listing label={strings.website.tools.tankopedia.meta.nation}>
|
||||||
<Flex align="center" gap="1">
|
<Flex align="center" gap="1">
|
||||||
<img
|
<img
|
||||||
style={{ width: '1em', height: '1em' }}
|
style={{ width: '1em', height: '1em' }}
|
||||||
@@ -137,17 +141,17 @@ export function MetaSection() {
|
|||||||
}
|
}
|
||||||
</Flex>
|
</Flex>
|
||||||
</Listing>
|
</Listing>
|
||||||
<Listing label="Class">
|
<Listing label={strings.website.tools.tankopedia.meta.class}>
|
||||||
<Flex align="center" gap="1">
|
<Flex align="center" gap="1">
|
||||||
<ClassIcon width="1em" height="1em" />
|
<ClassIcon width="1em" height="1em" />
|
||||||
{strings.common.tank_class_short[protagonist.class]}
|
{strings.common.tank_class_short[protagonist.class]}
|
||||||
</Flex>
|
</Flex>
|
||||||
</Listing>
|
</Listing>
|
||||||
<Listing label="Tier">
|
<Listing label={strings.website.tools.tankopedia.meta.tier}>
|
||||||
{TIER_ROMAN_NUMERALS[protagonist.tier]}
|
{TIER_ROMAN_NUMERALS[protagonist.tier]}
|
||||||
</Listing>
|
</Listing>
|
||||||
<Listing
|
<Listing
|
||||||
label="Type"
|
label={strings.website.tools.tankopedia.meta.type}
|
||||||
color={
|
color={
|
||||||
protagonist.type === TankType.COLLECTOR
|
protagonist.type === TankType.COLLECTOR
|
||||||
? 'blue'
|
? 'blue'
|
||||||
@@ -162,12 +166,12 @@ export function MetaSection() {
|
|||||||
|
|
||||||
<Flex direction="column" width="100%">
|
<Flex direction="column" width="100%">
|
||||||
{developerMode && (
|
{developerMode && (
|
||||||
<Listing label="DEV: ID">
|
<Listing label={strings.website.tools.tankopedia.meta.dev_id}>
|
||||||
<Code>{protagonist.id}</Code>
|
<Code>{protagonist.id}</Code>
|
||||||
</Listing>
|
</Listing>
|
||||||
)}
|
)}
|
||||||
{protagonist.type === TankType.PREMIUM && (
|
{protagonist.type === TankType.PREMIUM && (
|
||||||
<Listing label="Purchase price">
|
<Listing label={strings.website.tools.tankopedia.meta.purchase}>
|
||||||
<Flex align="center" gap="1">
|
<Flex align="center" gap="1">
|
||||||
{protagonist.price.value / 400}
|
{protagonist.price.value / 400}
|
||||||
<img
|
<img
|
||||||
@@ -179,11 +183,11 @@ export function MetaSection() {
|
|||||||
</Listing>
|
</Listing>
|
||||||
)}
|
)}
|
||||||
<Listing
|
<Listing
|
||||||
label={`${
|
label={
|
||||||
protagonist.type === TankType.RESEARCHABLE
|
protagonist.type === TankType.RESEARCHABLE
|
||||||
? 'Purchase'
|
? strings.website.tools.tankopedia.meta.purchase
|
||||||
: 'Restoration'
|
: strings.website.tools.tankopedia.meta.restoration
|
||||||
} price`}
|
}
|
||||||
>
|
>
|
||||||
<Flex align="center" gap="1">
|
<Flex align="center" gap="1">
|
||||||
{protagonist.price.value.toLocaleString(locale)}
|
{protagonist.price.value.toLocaleString(locale)}
|
||||||
@@ -200,7 +204,7 @@ export function MetaSection() {
|
|||||||
/>
|
/>
|
||||||
</Flex>
|
</Flex>
|
||||||
</Listing>
|
</Listing>
|
||||||
<Listing label="Sale price">
|
<Listing label={strings.website.tools.tankopedia.meta.sale}>
|
||||||
<Flex align="center" gap="1">
|
<Flex align="center" gap="1">
|
||||||
{(protagonist.price.value / 2).toLocaleString(locale)}
|
{(protagonist.price.value / 2).toLocaleString(locale)}
|
||||||
<img
|
<img
|
||||||
@@ -217,7 +221,7 @@ export function MetaSection() {
|
|||||||
</Flex>
|
</Flex>
|
||||||
</Listing>
|
</Listing>
|
||||||
{protagonist.research_cost && (
|
{protagonist.research_cost && (
|
||||||
<Listing label="Research XP">
|
<Listing label={strings.website.tools.tankopedia.meta.research}>
|
||||||
<Flex align="center" gap="1">
|
<Flex align="center" gap="1">
|
||||||
{(
|
{(
|
||||||
protagonist.research_cost.research_cost_type!
|
protagonist.research_cost.research_cost_type!
|
||||||
@@ -233,8 +237,6 @@ export function MetaSection() {
|
|||||||
)}
|
)}
|
||||||
</Flex>
|
</Flex>
|
||||||
</Flex>
|
</Flex>
|
||||||
|
|
||||||
{/* <Votes /> */}
|
|
||||||
</Flex>
|
</Flex>
|
||||||
</Flex>
|
</Flex>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in new issue
Block a user