@wocart/storefront / index / servedLanguage
Function: servedLanguage()
servedLanguage(
config,code?):StorefrontLanguage
The served language with code (the store's primary by default), or null
when the store does not serve it — the shape a theme reads <html dir> and
a language switcher's labels from.
Parameters
config
Pick<StoreConfig, "lang" | "locales">
code?
string