MCPcopy
hub / github.com/lingodotdev/lingo.dev / init

Function init

packages/cli/src/cli/loaders/_utils.ts:58–64  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56 };
57 return {
58 async init() {
59 if (state.initCtx) {
60 return state.initCtx;
61 }
62 state.initCtx = await lDefinition.init?.();
63 return state.initCtx as C;
64 },
65 setDefaultLocale(locale) {
66 if (state.defaultLocale) {
67 throw new Error("Default locale already set");

Callers

nothing calls this directly

Calls 1

initMethod · 0.65

Tested by

no test coverage detected