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

Function saveConfig

packages/cli/src/cli/utils/config.ts:28–35  ·  view source on GitHub ↗
(config: I18nConfig)

Source from the content-addressed store, hash-verified

26}
27
28export function saveConfig(config: I18nConfig) {
29 const configFilePath = _getConfigFilePath();
30
31 const serialized = JSON.stringify(config, null, 2);
32 fs.writeFileSync(configFilePath, serialized);
33
34 return config;
35}
36
37// Private
38

Callers 2

init.tsFile · 0.90
getConfigFunction · 0.85

Calls 1

_getConfigFilePathFunction · 0.85

Tested by

no test coverage detected