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

Function createLoader

packages/cli/src/cli/loaders/ignored-keys.spec.ts:14–18  ·  view source on GitHub ↗

* Creates a fresh loader instance with the default locale already set.

()

Source from the content-addressed store, hash-verified

12 * Creates a fresh loader instance with the default locale already set.
13 */
14function createLoader() {
15 const loader = createIgnoredKeysLoader(IGNORED_KEYS);
16 loader.setDefaultLocale(defaultLocale);
17 return loader;
18}
19
20describe("ignored-keys loader", () => {
21 it("should omit the ignored keys when pulling the default locale", async () => {

Callers 1

Calls 2

createIgnoredKeysLoaderFunction · 0.85
setDefaultLocaleMethod · 0.80

Tested by

no test coverage detected