Commit 5960e96
Changed files (2)
packages
i18n
packages/i18n/README.md
@@ -0,0 +1,21 @@
+# @astral-halo/i18n
+
+English | [简体中文](./README.zh-CN.md)
+
+Translation package for Astral Halo, using [`typesafe-i18n`](https://github.com/ivanhofer/typesafe-i18n) for translation.
+
+## Usage
+
+Before making any changes to the translation fields, please start `typesafe-i18n` in the root directory of the project:
+
+```sh
+pnpm run --filter @astral-halo/i18n typesafe-i18n
+```
+
+To use in the project, please import this package:
+
+```js
+import { L } from '@astral-halo/i18n';
+```
+
+For detailed usage, please refer to the `@typesafe-i18n/runtime` [documentation](https://github.com/ivanhofer/typesafe-i18n/blob/main/packages/runtime/README.md).
packages/i18n/README.zh-CN.md
@@ -0,0 +1,21 @@
+# @astral-halo/i18n
+
+[English](./README.md) | 简体中文
+
+Astral Halo 的翻译包,使用 [`typesafe-i18n`](https://github.com/ivanhofer/typesafe-i18n) 进行翻译。
+
+## 使用方法
+
+对翻译字段进行任何修改前,请在项目根目录启动 `typesafe-i18n`:
+
+```sh
+pnpm run --filter @astral-halo/i18n typesafe-i18n
+```
+
+在项目中使用,请导入此包:
+
+```js
+import { L } from '@astral-halo/i18n';
+```
+
+详细使用方法请参考 `@typesafe-i18n/runtime` [文档](https://github.com/ivanhofer/typesafe-i18n/blob/main/packages/runtime/README.md)。