documentLocale
documentLocale(
doc):Record<string,unknown> |undefined
Defined in: packages/core/src/i18n/strings.ts:182
A map or story document’s locale: table: config.locale (v1 and
stories) or runtime.map.locale (v2). undefined when it has none.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
doc | unknown |
Returns
Section titled “Returns”Record<string, unknown> | undefined