Skip to content

pantoken / renderers/web-components/src / makeStrings

Function: makeStrings()

makeStrings(locale, overrides?): WebComponentStrings

Alpha

Build a WebComponentStrings object for locale. Weekday names are derived from Intl.DateTimeFormat (and rotated to the locale's first day of week); all other strings fall back to English unless provided in overrides.

Parameters

locale

string

overrides?

Partial<WebComponentStrings>

Returns

WebComponentStrings