JGuang

中文与国际化

Chinese localization · Astryx

npm install @astryxdesign/core@0.7.1 @astryxdesign/theme-neutral@0.7.1 @stylexjs/stylex@0.19.0

中文与国际化

本站预览通过 InternationalizationProvider 使用 Astryx 的 zh-CN 消息,菜单、日期等组件内部文本可使用官方本地化。示例业务内容保留公开演示数据,不代表真实用户。

import {InternationalizationProvider} from '@astryxdesign/core/i18n';
import zhCN from '@astryxdesign/core/locales/zh-CN.generated.js';
// 包裹自己的组件树:
// <InternationalizationProvider locale="zh-CN" messages={{'zh-CN': zhCN}}>…</InternationalizationProvider>

API 属性名、代码标识符和包名不翻译。日期格式、文本方向和长中文标签仍需按业务验收。