LogoClawIndex
案例技能关于
LogoClawIndex

Internationalizing Components - 服务端和客户端组件国际化

为服务端和客户端组件提供国际化模式,使用 getTranslations 和 useTranslations

标签

更新于: 2026-03-20

能力

典型输入

典型输出

该技能可以做什么

  • 读取翻译文件
  • 使用 getTranslations 工具
  • 使用 useTranslations 钩子
  • 提供翻译上下文
  • 生成本地化 URL
  • 切换语言
  • 导入翻译 JSON
  • 包装组件上下文

输入

  • translation.json 文件
  • 组件翻译文件
  • locale 参数
  • 翻译键

输出

  • 本地化文本
  • 本地化 URL
  • 本地化路由

要求

  • TranslationContextProvider
  • getTranslations 工具
  • useTranslations 钩子
  • 语言感知路由
  • 翻译文件结构

来源

  • 规范: SKILL.md

ClawIndex

OpenClaw Skills 与 Use Case 索引

ClawIndex 是一个生态驱动的 OpenClaw Skills 与真实 Use Case 索引站。

索引

Skills·
Cases

Meta

关于·
声明·
邮箱·
GitHub
© 2026 ClawIndex 保留所有权利。
国际化
多语言
翻译
服务端组件
客户端组件
语言区域
读取翻译文件
使用 getTranslations 工具
使用 useTranslations 钩子
提供翻译上下文
translation.json 文件
组件翻译文件
locale 参数
本地化文本
本地化 URL
本地化路由