Skip to Content
i18n

i18n

分为以下几个模块:

运行时

@dune2/tools/i18n 导入

  • 通过 useT i18n t 等实现 t 函数的调用
  • 通过 Trans 组件调用

编译时

t Trans 等做编译

cli提取代码中使用的文案

对代码中出现的t Trans 等调用抽取其中的文案,生成 json 文件

playground

输入代码

Loading...

编译后的代码

Loading...

提取到的文案

Loading...