diff --git a/src/locale/README.zh-CN.md b/src/locale/README.zh-CN.md index 265bc6462..cdd9ba2a2 100644 --- a/src/locale/README.zh-CN.md +++ b/src/locale/README.zh-CN.md @@ -46,3 +46,7 @@ Locale.add(messages); | 土耳其语 | tr-TR | 在 [这里](https://github.com/youzan/vant/tree/dev/src/locale/lang) 查看所有的 i18n 配置文件。 + +### Sku 组件 + +语言包中默认不包含 Sku 业务组件的语言配置,因此如果有 Sku 组件的国际化需求,请自行配置国际化文案。 diff --git a/src/sku/components/SkuActions.tsx b/src/sku/components/SkuActions.tsx index 93dc93730..a437d477d 100644 --- a/src/sku/components/SkuActions.tsx +++ b/src/sku/components/SkuActions.tsx @@ -13,7 +13,7 @@ export type SkuActionsProps = { showAddCartBtn?: boolean; }; -const [createComponent, bem] = createNamespace('sku-actions'); +const [createComponent, bem, t] = createNamespace('sku-actions'); function SkuActions( h: CreateElement, @@ -31,14 +31,14 @@ function SkuActions(