MCPcopy Create free account
hub / github.com/5e-bits/5e-database / TranslationContext

Interface TranslationContext

scripts/update/processor.ts:346–350  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

344// --- Translation Helpers ---
345
346interface TranslationContext {
347 lang: string;
348 indexName: string;
349 enMap: Map<string, Record<string, unknown>>;
350}
351
352async function resolveTranslationContext(filepath: string): Promise<TranslationContext | null> {
353 const lang = getLocaleFromFilepath(filepath);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected