MCPcopy Create free account
hub / github.com/bigcommerce/stencil-cli / getSchemaTranslations

Method getSchemaTranslations

lib/theme-config.js:245–251  ·  view source on GitHub ↗

* Get Schema Translations * * @returns {Promise }

()

Source from the content-addressed store, hash-verified

243 * @returns {Promise<Object>}
244 */
245 async getSchemaTranslations() {
246 if (!fs.existsSync(this.schemaTranslationsPath)) {
247 return {};
248 }
249 const schemaTranslations = await parseJsonFile(this.schemaTranslationsPath);
250 return isObject(schemaTranslations) ? schemaTranslations : {};
251 }
252
253 /**
254 * Returns the parsed config.json data.

Callers 1

Calls 1

parseJsonFileFunction · 0.90

Tested by

no test coverage detected