diff --git a/packages/i18n/strings/en.json b/packages/i18n/strings/en.json index caa25ce0f..bb37b8166 100644 --- a/packages/i18n/strings/en.json +++ b/packages/i18n/strings/en.json @@ -6,6 +6,18 @@ }, "common": { + "tiers": { + "0": "Unknown tier", + "1": "I", + "2": "II", + "3": "III", + "4": "IV", + "5": "V", + "6": "VI", + "7": "VII", + "8": "Vintage" + }, + "units": { "m": "%s1m", "mm": "%s1mm", @@ -86,15 +98,44 @@ }, "nations": { - "ussr": "U.S.S.R.", - "germany": "Germany", - "usa": "U.S.A.", - "china": "China", - "uk": "U.K.", - "france": "France", - "japan": "Japan", - "european": "European Nation", - "other": "Hybrid Nation" + "0": "Unknown nation", + "1": "U.S.S.R.", + "2": "Germany", + "3": "U.S.A.", + "4": "China", + "5": "France", + "6": "U.K.", + "7": "Japan", + "8": "Europe", + "9": "Poland", + "10": "Australia", + "11": "Canada", + "12": "Italy", + "13": "Finland", + "14": "Czech", + "15": "Hybrid Nation", + "16": "GDR", + "17": "Ireland", + "18": "Scotland", + "19": "Sweden", + "20": "Argo Coalition", + "21": "Titan Lab", + "22": "Defender", + "23": "Progresston", + "24": "Wasteland", + "25": "Hunters Moon", + "26": "Cold Front", + "27": "The Explorer", + "28": "Fablegear", + "29": "Outlaws", + "30": "GUP", + "31": "Dune", + "32": "Terminator", + "33": "Warhammer", + "34": "Valkirya Chronicles", + "35": "Mecha", + "36": "TMNT", + "37": "Star Trek" }, "nations_adjectives": { @@ -109,6 +150,14 @@ "other": "Hybrid" }, + "tank_class": { + "0": "Unknown Class", + "1": "Heavy", + "2": "Light", + "3": "Medium", + "4": "Tank destroyer" + }, + "tank_class_short": { "-1": "unrecognized", "0": "Light", @@ -133,10 +182,10 @@ }, "tree_type": { - "-1": "unrecognized", - "0": "Tech tree", - "1": "Premium", - "2": "Collector" + "0": "Unknown tree type", + "1": "Common", + "2": "Premium", + "3": "Collector" }, "regions": { diff --git a/packages/website/src/components/HomeHero.astro b/packages/website/src/components/HomeHero.astro index b97d3e91b..d4b799e14 100644 --- a/packages/website/src/components/HomeHero.astro +++ b/packages/website/src/components/HomeHero.astro @@ -3,11 +3,16 @@ import { Code, Flex, Heading, Text } from '@radix-ui/themes'; import { resolveBranchName } from '../core/blitzkit/branches'; import { getStrings } from '../core/i18n/getStrings'; import { literals } from '@blitzkit/i18n/src/literals'; +import type { BlitzKitStrings } from 'packages/i18n/src'; -const { locale } = Astro.params; +interface Props { + locale: string; + strings: BlitzKitStrings; +} + +const { strings, locale } = Astro.props; const branchName = resolveBranchName(locale); const isBranchNamed = branchName !== undefined; -const strings = getStrings(locale); ---