Skip to content

pantoken-root / renderers/web-components/src / makeStrings

函数: makeStrings() ​

makeStrings(locale, overrides?): WebComponentStrings

Alpha

为 locale 构建一个 WebComponentStrings 对象。 星期名称来自 Intl.DateTimeFormat(并根据该语言环境的一周首日进行旋转);除非在 overrides 中提供,否则所有其他字符串都回退为英语。

参数 ​

locale ​

string

overrides? ​

Partial<WebComponentStrings>

返回值 ​

WebComponentStrings