MCPcopy Index your code
hub / github.com/candybox2/candybox2.github.io / getText

Function getText

code/main/Database.ts:45–50  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

43 }
44
45 export function getText(key: string): string{
46 if(textMap["en." + key] == null)
47 console.log("Error : trying to access the unknown text \"" + key + "\"");
48
49 return textMap["en." + key];
50 }
51
52 export function getTranslatedText(key: string): string{
53 // If we have a language (other than english) selected

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected