Skip to content

Commit

Permalink
Merge pull request #384 from Zezombye/add-hazard
Browse files Browse the repository at this point in the history
feat: season 13
  • Loading branch information
CactusPuppy authored Dec 21, 2024
2 parents 6e16ab4 + 6534152 commit 6657306
Show file tree
Hide file tree
Showing 11 changed files with 719,624 additions and 674,991 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"@typescript-eslint/semi": "warn",
"curly": ["warn", "multi-line"],
"eqeqeq": ["warn", "always", { "null": "ignore" }],
"no-throw-literal": "warn"
"no-throw-literal": "warn",
"indent": ["warn", 4]
},
"ignorePatterns": ["out", "dist", "**/*.d.ts"]
}
15 changes: 15 additions & 0 deletions generate-the-other-languages-doc.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,21 @@ function addTranslations(content) {
}

let guidGlob = guidToLocaleMap.get(content.guid);
if (!guidGlob) {
console.warn(`GUID ${content.guid} for ${JSON.stringify(content)} appears to have become invalid! Attempting to rectify by finding the GUID again...`);
if (fuzzyMatch) {
content.guid = enUSFuzzyToGuidMap.get(content["en-US"].replace(/[\.,;'\s()-]/g, "").toLowerCase());
} else {
content.guid = enUSToGuidMap.get(content["en-US"]);
}
guidGlob = guidToLocaleMap.get(content.guid);

if (!guidGlob) {
console.error(`No valid GUID found for content ${JSON.stringify(content)}`);
return content;
}
console.log(`New GUID found: ${content.guid}, proceeding...`);
}
for (let localeEntry of Object.entries(guidGlob)) {
localeEntry[1] = localeEntry[1].replace(/%%/g, "%");
if (removeParentheses) localeEntry[1] = localeEntry[1].replace(/[,\(\)\/]/g, "");
Expand Down
4 changes: 2 additions & 2 deletions src/data/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26191,7 +26191,7 @@ export const actionKw: Record<string, Action> =
"pt-BR": "Desde o começo",
"ru-RU": "Все",
"th-TH": "ประจำโปรไฟล์",
"tr-TR": "Daimi",
"tr-TR": "Daimî",
"zh-CN": "生涯",
"zh-TW": "生涯"
},
Expand Down Expand Up @@ -26715,7 +26715,7 @@ export const actionKw: Record<string, Action> =
"pt-BR": "Desde o começo",
"ru-RU": "Все",
"th-TH": "ประจำโปรไฟล์",
"tr-TR": "Daimi",
"tr-TR": "Daimî",
"zh-CN": "生涯",
"zh-TW": "生涯"
},
Expand Down
104 changes: 52 additions & 52 deletions src/data/constants.ts

Large diffs are not rendered by default.

212 changes: 132 additions & 80 deletions src/data/customGameSettings.ts

Large diffs are not rendered by default.

100 changes: 96 additions & 4 deletions src/data/heroes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ export const heroKw: Record<Overwatch2Heroes, HeroData> =
"pl-PL": "Granat Błyskowy",
"pt-BR": "Clarão",
"ru-RU": "Светошумовая граната",
"th-TH": "แฟลชแบงก์",
"th-TH": "แฟลชแบง",
"tr-TR": "Flaş Bombası",
"zh-CN": "闪光弹",
"zh-TW": "閃光彈"
Expand Down Expand Up @@ -1750,7 +1750,7 @@ export const heroKw: Record<Overwatch2Heroes, HeroData> =
"ja-JP": "バイオティック・オーブ",
"ko-KR": "생체 구슬",
"pl-PL": "Kula Biotyczna",
"pt-BR": "Orbe Biótica",
"pt-BR": "Orbe Biótico",
"ru-RU": "Биотическая сфера",
"th-TH": "ไบโอติกออร์บ",
"tr-TR": "Biyotik Küre",
Expand Down Expand Up @@ -2607,7 +2607,7 @@ export const heroKw: Record<Overwatch2Heroes, HeroData> =
"guid": "000000000406",
"en-US": "Sentry Turret",
"de-DE": "Selbstschussanlage",
"es-ES": "Torreta centinela\n",
"es-ES": "Torreta centinela",
"es-MX": "Torreta centinela",
"fr-FR": "Tourelle sentinelle",
"it-IT": "Drone Sentinella",
Expand Down Expand Up @@ -3441,7 +3441,7 @@ export const heroKw: Record<Overwatch2Heroes, HeroData> =
"it-IT": "Anello Sonico",
"ja-JP": "ハイパー・リング",
"ko-KR": "하이퍼 링",
"pl-PL": "Hiperpierścien",
"pl-PL": "Hiperpierścień",
"pt-BR": "Aro Turbo",
"ru-RU": "Гиперкольцо",
"th-TH": "ไฮเปอร์ริง",
Expand Down Expand Up @@ -3500,6 +3500,98 @@ export const heroKw: Record<Overwatch2Heroes, HeroData> =
"tr-TR": "<en>Juno<en>",
"zh-CN": "朱诺",
"zh-TW": "朱諾"
},
"hazard": {
"primaryFire": {
"en-US": "Bonespur",
"guid": "00000001B3B6",
"de-DE": "Knochensporn",
"es-ES": "Lanzaespinas",
"es-MX": "Ráfaga de púas",
"fr-FR": "Éperon osseux",
"it-IT": "Raffica Acuminata",
"ja-JP": "ボーン・スティング",
"ko-KR": "본스퍼",
"pl-PL": "Drzazga",
"pt-BR": "Ossada",
"ru-RU": "Шипострел",
"th-TH": "โบนสเปอร์",
"tr-TR": "Dikenleyici",
"zh-CN": "骨刺",
"zh-TW": "骨刺"
},
"secondaryFire": {
"en-US": "Spike Guard",
"guid": "00000001E11E",
"de-DE": "Stachelschutz",
"es-ES": "Protección de púas",
"es-MX": "Protección de púas",
"fr-FR": "Garde hérissée",
"it-IT": "Guardia Affilata",
"ja-JP": "スパイク・ガード",
"ko-KR": "날카로운 저항",
"pl-PL": "Kolcoobrona",
"pt-BR": "Defesa Ouriçada",
"ru-RU": "Шипастая оборона",
"th-TH": "สไปค์การ์ด",
"tr-TR": "Emniyet Dikeni",
"zh-CN": "尖刺护体",
"zh-TW": "尖刺防禦"
},
"ability1": {
"en-US": "Violent Leap",
"guid": "00000001B3D4",
"de-DE": "Sturzsprung",
"es-ES": "Salto violento",
"es-MX": "Salto violento",
"fr-FR": "Saut violent",
"it-IT": "Balzo Furioso",
"ja-JP": "バイオレント・リープ",
"ko-KR": "덤벼들기",
"pl-PL": "Gwałtowny Skok",
"pt-BR": "Salto Brutal",
"ru-RU": "Жестокий наскок",
"th-TH": "ไวโอเลนท์ลีพ",
"tr-TR": "Haşin Atlayış",
"zh-CN": "狂跃",
"zh-TW": "猛躍"
},
"ability2": {
"en-US": "Jagged Wall",
"guid": "00000001FAD0",
"de-DE": "Zackenwall",
"es-ES": "Muro afilado",
"es-MX": "Muro de púas",
"fr-FR": "Mur dentelé",
"it-IT": "Muro Spinato",
"ja-JP": "ジャギー・ウォール",
"ko-KR": "가시벽",
"pl-PL": "Kolczasta Ściana",
"pt-BR": "Barreira Espinhosa",
"ru-RU": "Зубчатая стена",
"th-TH": "แจ็กด์วอลล์",
"tr-TR": "Dişli Duvar",
"zh-CN": "尖刺墙",
"zh-TW": "鋸齒牆"
},
"ultimate": {
"en-US": "Downpour",
"guid": "00000001E044",
"de-DE": "Vanadiumhagel",
"es-ES": "Aguacero",
"es-MX": "Diluvio",
"fr-FR": "Déluge",
"it-IT": "Diluvio",
"ja-JP": "ヘヴィ・レイン",
"ko-KR": "가시 소나기",
"pl-PL": "Ostre Siepnięcie",
"pt-BR": "Dilúvio",
"ru-RU": "Ливень",
"th-TH": "ดาวน์พัวร์",
"tr-TR": "Sağanak",
"zh-CN": "千针雨",
"zh-TW": "狂暴針雨"
}
}
}
//end-json
Expand Down
30 changes: 15 additions & 15 deletions src/data/localizedStrings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4772,7 +4772,7 @@ var normalStrKw =
"pl-PL": "Zhakowano",
"pt-BR": "Hackeado",
"ru-RU": "Взломал",
"th-TH": "แฮ็คแล้ว",
"th-TH": "ถูกแฮ็ค",
"tr-TR": "Hack'lendi",
"zh-CN": "已入侵",
"zh-TW": "被駭入",
Expand Down Expand Up @@ -6356,7 +6356,7 @@ var normalStrKw =
"pl-PL": "Ograniczone",
"pt-BR": "Limitado",
"ru-RU": "Ограничен",
"th-TH": "จํากัด",
"th-TH": "จำกัด",
"tr-TR": "Sınırlı",
"zh-CN": "受限",
"zh-TW": "有限制",
Expand Down Expand Up @@ -8570,7 +8570,7 @@ var normalStrKw =
"pl-PL": "Ranga",
"pt-BR": "Ranque",
"ru-RU": "Ранг",
"th-TH": "แรงค์",
"th-TH": "อันดับ",
"tr-TR": "Derece",
"zh-CN": "排名",
"zh-TW": "等級",
Expand All @@ -8588,7 +8588,7 @@ var normalStrKw =
"pl-PL": "Ranga A",
"pt-BR": "Ranque A",
"ru-RU": "Ранг A",
"th-TH": "แรงค์ A",
"th-TH": "อันดับ A",
"tr-TR": "A Derecesi",
"zh-CN": "等级 A",
"zh-TW": "等級A",
Expand All @@ -8606,7 +8606,7 @@ var normalStrKw =
"pl-PL": "Ranga B",
"pt-BR": "Ranque B",
"ru-RU": "Ранг B",
"th-TH": "แรงค์ B",
"th-TH": "อันดับ B",
"tr-TR": "B Derecesi",
"zh-CN": "等级 B",
"zh-TW": "等級B",
Expand All @@ -8624,7 +8624,7 @@ var normalStrKw =
"pl-PL": "Ranga C",
"pt-BR": "Ranque C",
"ru-RU": "Ранг C",
"th-TH": "แรงค์ C",
"th-TH": "อันดับ C",
"tr-TR": "C Derecesi",
"zh-CN": "等级 C",
"zh-TW": "等級C",
Expand All @@ -8642,7 +8642,7 @@ var normalStrKw =
"pl-PL": "Ranga D",
"pt-BR": "Ranque D",
"ru-RU": "Ранг D",
"th-TH": "แรงค์ D",
"th-TH": "อันดับ D",
"tr-TR": "D Derecesi",
"zh-CN": "等级 D",
"zh-TW": "等級D",
Expand All @@ -8660,7 +8660,7 @@ var normalStrKw =
"pl-PL": "Ranga E",
"pt-BR": "Ranque E",
"ru-RU": "Ранг E",
"th-TH": "แรงค์ E",
"th-TH": "อันดับ E",
"tr-TR": "E Derecesi",
"zh-CN": "等级 E",
"zh-TW": "等級E",
Expand All @@ -8678,7 +8678,7 @@ var normalStrKw =
"pl-PL": "Ranga F",
"pt-BR": "Ranque F",
"ru-RU": "Ранг F",
"th-TH": "แรงค์ F",
"th-TH": "อันดับ F",
"tr-TR": "F Derecesi",
"zh-CN": "等级 F",
"zh-TW": "等級F",
Expand All @@ -8696,7 +8696,7 @@ var normalStrKw =
"pl-PL": "Ranga S",
"pt-BR": "Ranque S",
"ru-RU": "Ранг S",
"th-TH": "แรงค์ S",
"th-TH": "อันดับ S",
"tr-TR": "S Derecesi",
"zh-CN": "等级 S",
"zh-TW": "等級S",
Expand Down Expand Up @@ -8879,8 +8879,8 @@ var normalStrKw =
"tr-TR": "Kırmızı",
"zh-CN": "红色",
"zh-TW": "紅",
"es-ES": "Red",
"ko-KR": "Red"
"es-ES": "Rojo",
"ko-KR": "빨간색"
},
"Remain": {
"guid": "00000000C5EA",
Expand Down Expand Up @@ -10640,7 +10640,7 @@ var normalStrKw =
"pl-PL": "Sukces",
"pt-BR": "Sucesso",
"ru-RU": "Успех",
"th-TH": "ความสําเร็จ",
"th-TH": "ความสำเร็จ",
"tr-TR": "Başarı",
"zh-CN": "成功",
"zh-TW": "成功",
Expand Down Expand Up @@ -11360,7 +11360,7 @@ var normalStrKw =
"pl-PL": "Nieograniczone",
"pt-BR": "Ilimitado",
"ru-RU": "Неограниченно",
"th-TH": "ไม่จํากัด",
"th-TH": "ไม่จำกัด",
"tr-TR": "Sınırsız",
"zh-CN": "不受限",
"zh-TW": "無限制",
Expand Down Expand Up @@ -11415,7 +11415,7 @@ var normalStrKw =
"pt-BR": "Desbloqueando",
"ru-RU": "Активация",
"th-TH": "กำลังปลดล็อค",
"tr-TR": "Açan",
"tr-TR": "Açılıyor",
"zh-CN": "正在解锁",
"zh-TW": "正在解鎖",
"ko-KR": "잠금 해제"
Expand Down
4 changes: 2 additions & 2 deletions src/data/other.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const customGameSettingsKw: Record<string, LocalizableString> =
"pl-PL": "Wyłączono",
"pt-BR": "Desativada",
"ru-RU": "Откл.",
"th-TH": "ปิดใช้งานแล้ว",
"th-TH": "ปิดใช้งาน",
"tr-TR": "Devre Dışı",
"zh-CN": "禁用",
"zh-TW": "停用"
Expand Down Expand Up @@ -226,7 +226,7 @@ export const ruleKw: Record<string, LocalizableString> =
"ja-JP": "無効",
"pl-PL": "wył.",
"pt-BR": "desabilitado",
"th-TH": "ปิดใช้งานแล้ว",
"th-TH": "ปิดใช้งาน",
"tr-TR": "devre dışı",
"zh-CN": "禁用",
"zh-TW": "停用",
Expand Down
4 changes: 2 additions & 2 deletions src/data/ui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,7 @@ const workshopUiKw =
"pl-PL": "Łączna liczba elementów",
"pt-BR": "Total de elementos",
"ru-RU": "Всего элементов",
"th-TH": "จํานวนเอเลเมนต์ทั้งหมด",
"th-TH": "จำนวนเอเลเมนต์ทั้งหมด",
"tr-TR": "Toplam Unsur Sayısı",
"zh-CN": "总计元素数量",
"zh-TW": "元件數量"
Expand All @@ -868,7 +868,7 @@ const workshopUiKw =
"pl-PL": "Do elementów zaliczają się reguły, warunki, działania i wartości (maksymalnie %1$s)",
"pt-BR": "Elementos incluem regras, condições, ações e valores (até %1$s)",
"ru-RU": "Элементы включают в себя правила, условия, действия и значения (вплоть до %1$s).",
"th-TH": "เอเลเมนต์ประกอบด้วยกฎ เงื่อนไข การดําเนินการ และค่า (สูงสุด %1$s)",
"th-TH": "เอเลเมนต์ประกอบด้วยกฎ เงื่อนไข การดำเนินการ และค่า (สูงสุด %1$s)",
"tr-TR": "Unsurlara kurallar, koşullar, eylemler ve değerler dâhildir (maksimum %1$s)",
"zh-CN": "元素包括规则、条件、行动和值(最多可有%1$s个)",
"zh-TW": "元件包括規則、條件、動作和數值(最高為%1$s)"
Expand Down
1 change: 1 addition & 0 deletions src/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ export enum Overwatch2Heroes {
echo = "echo",
genji = "genji",
hanzo = "hanzo",
hazard = "hazard",
illari = "illari",
junkerQueen = "junkerQueen",
junkrat = "junkrat",
Expand Down
Loading

0 comments on commit 6657306

Please sign in to comment.