mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-05-05 20:56:13 -05:00
Fix ts-nocheck in create-gear-json.ts
This commit is contained in:
parent
5a54813a91
commit
f8926e1a8d
|
|
@ -1,5 +1,3 @@
|
|||
// @ts-nocheck
|
||||
|
||||
import fs from "node:fs";
|
||||
import path from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
|
|
@ -57,7 +55,13 @@ async function main() {
|
|||
internalName,
|
||||
brand: gear.Brand,
|
||||
translations: langDicts.map(([langCode, translations]) => {
|
||||
const name = translations[categoryKey]?.[internalName];
|
||||
const category = (
|
||||
translations as unknown as Record<
|
||||
string,
|
||||
Record<string, string> | undefined
|
||||
>
|
||||
)[categoryKey];
|
||||
const name = category?.[internalName];
|
||||
invariant(name, `Missing translation for ${internalName}`);
|
||||
|
||||
return {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user