mirror of
https://github.com/Afilmory/afilmory
synced 2026-02-01 14:44:48 +00:00
- Deleted the builder-storage.mdc file, which contained outdated documentation for the storage abstraction layer. - Removed deprecated functions related to S3 operations from the storage adapters, encouraging the use of the new StorageManager API. - Updated various components to utilize the StorageManager for file retrieval and URL generation, enhancing consistency and maintainability across the codebase. Signed-off-by: Innei <tukon479@gmail.com>
13 lines
889 B
Plaintext
13 lines
889 B
Plaintext
---
|
|
description:
|
|
globs: locales/**/*.json
|
|
alwaysApply: false
|
|
---
|
|
i18n 编写规范。
|
|
|
|
1. 阅读并遵循 https://www.i18next.com/translation-function/formatting
|
|
2. 使用扁平键。使用 `.` 方式分割。不能使用 object 形式嵌套。
|
|
3. 对单复数敏感的语言应该区分,使用 `_one` 和 `_other` 的形式。
|
|
4. 在 build 阶段,扁平化的点分隔键(如 'exif.custom.rendered.custom')会自动转换为嵌套的 object 对象,因此可能引发冲突。例如,'exif.custom.rendered.custom' 会与 'exif.custom.rendered' 发生冲突。请避免使用此类点分隔的扁平键。
|
|
5. @locales 位于根目录,需要同时处理已有的全部的语言
|
|
6. 你需要修改 [en.json](mdc:locales/app/en.json) 然后再修改 [zh-CN.json](mdc:locales/app/zh-CN.json) 和其他语言。因为 eslint 会自动删除其他 json 中的 en 中没有的 key。 |