Skip to content

Add Chinese translations for various documentation files including fe…#858

Merged
illright merged 8 commits intofeature-sliced:masterfrom
liuwei1025:master
Sep 27, 2025
Merged

Add Chinese translations for various documentation files including fe…#858
illright merged 8 commits intofeature-sliced:masterfrom
liuwei1025:master

Conversation

@liuwei1025
Copy link
Copy Markdown
Contributor

…atures, community, branding, and guides. Introduce new sections for understanding, migration, and tech usage with frameworks like Next.js and Electron.

Background

Add Chinese translation.

Changelog

…atures, community, branding, and guides. Introduce new sections for understanding, migration, and tech usage with frameworks like Next.js and Electron.
@illright illright requested a review from Copilot August 19, 2025 13:16
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request adds comprehensive Chinese translations for Feature-Sliced Design documentation, covering a wide range of documentation files including reference materials, guides, examples, migration instructions, and technology-specific usage guides. The PR introduces new Chinese localization infrastructure with navbar and footer translations, along with extensive documentation for core concepts, practical guides, and framework integrations.

  • Adds complete Chinese localization infrastructure including navbar and footer translations
  • Translates core reference documentation for layers, slices/segments, and public APIs
  • Includes comprehensive guides covering migration, examples, and technology integrations
  • Provides Chinese translations for framework-specific usage guides (Next.js, Electron, React Query, etc.)

Reviewed Changes

Copilot reviewed 67 out of 67 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
package.json Adds Chinese locale support with new start script
i18n/zh/docusaurus-theme-classic/ Provides Chinese translations for UI navigation elements
i18n/zh/docusaurus-plugin-content-docs/current/reference/ Translates core FSD reference documentation
i18n/zh/docusaurus-plugin-content-docs/current/guides/ Translates practical guides and examples
i18n/zh/docusaurus-plugin-content-docs/current/guides/tech/ Provides Chinese versions of technology-specific integration guides

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.


The independence of slices is enforced by the [import rule on layers][layers--import-rule]:

> _A module (file) in a slice can only import other slices when they are located on layers strictly below._
Copy link

Copilot AI Aug 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This English text should be translated to Chinese to maintain consistency with the rest of the document.

Suggested change
> _A module (file) in a slice can only import other slices when they are located on layers strictly below._
> _slice 中的模块(文件)只能导入位于更低层级的其他 slice_

Copilot uses AI. Check for mistakes.

Inside a slice, the code could be organized in any way that you want. That doesn't pose any issues as long as the slice provides a good public API for other slices to use it. This is enforced with the **public API rule on slices**:

> _Every slice (and segment on layers that don't have slices) must contain a public API definition._
Copy link

Copilot AI Aug 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This English text should be translated to Chinese to maintain consistency with the rest of the document.

Suggested change
> _Every slice (and segment on layers that don't have slices) must contain a public API definition._
> _每个 slice(以及没有 slices 的 layer 上的 segment)都必须包含一个公共 API 定义。_

Copilot uses AI. Check for mistakes.

> _Every slice (and segment on layers that don't have slices) must contain a public API definition._
>
> _Modules outside of this slice/segment can only reference the public API, not the internal file structure of the slice/segment._
Copy link

Copilot AI Aug 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This English text should be translated to Chinese to maintain consistency with the rest of the document.

Suggested change
> _Modules outside of this slice/segment can only reference the public API, not the internal file structure of the slice/segment._
> _slice/segment 之外的模块只能引用其公共 API,不能引用 slice/segment 的内部文件结构。_

Copilot uses AI. Check for mistakes.
6. Entities
7. Shared

You don't have to use every layer in your project — only add them if you think it brings value to your project. Typically, most frontend projects will have at least the Shared, Pages, and App layers.
Copy link

Copilot AI Aug 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This English text should be translated to Chinese to maintain consistency with the rest of the document.

Suggested change
You don't have to use every layer in your project — only add them if you think it brings value to your project. Typically, most frontend projects will have at least the Shared, Pages, and App layers.
您不必在项目中使用所有的层——只有在您认为它们对项目有价值时才添加。通常,大多数前端项目至少会包含 SharedPages App 这几个层。

Copilot uses AI. Check for mistakes.

You don't have to use every layer in your project — only add them if you think it brings value to your project. Typically, most frontend projects will have at least the Shared, Pages, and App layers.

In practice, layers are folders with lowercase names (for example, `📁 shared`, `📁 pages`, `📁 app`). Adding new layers is _not recommended_ because their semantics are standardized.
Copy link

Copilot AI Aug 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This English text should be translated to Chinese to maintain consistency with the rest of the document.

Suggested change
In practice, layers are folders with lowercase names (for example, `📁 shared`, `📁 pages`, `📁 app`). Adding new layers is _not recommended_ because their semantics are standardized.
实际上,层就是以小写命名的文件夹(例如,`📁 shared``📁 pages``📁 app`)。不建议添加新的层,因为它们的语义已经被标准化。

Copilot uses AI. Check for mistakes.

方法论的新版本([v2][ext-v2])旨在**消除这些缺点,同时保留该方法的现有优势**。

Since 2018, [has also developed][ext-fdd-issues] another similar methodology - [**feature-driven**][ext-fdd], which was first announced by [Oleg Isonen][ext-kof].
Copy link

Copilot AI Aug 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This English text should be translated to Chinese to maintain consistency with the rest of the document.

Suggested change
Since 2018, [has also developed][ext-fdd-issues] another similar methodology - [**feature-driven**][ext-fdd], which was first announced by [Oleg Isonen][ext-kof].
2018 年以来,[也发展了][ext-fdd-issues]另一种类似的方法论——[**feature-driven**][ext-fdd],最早由 [Oleg Isonen][ext-kof] 宣布。

Copilot uses AI. Check for mistakes.
…g guides and examples. Enhance clarity and consistency in terminology across sections related to UI decomposition, API requests, and authentication processes.
Copy link
Copy Markdown
Member

@illright illright left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please remove the files that are still in English? Docusaurus provides automatic fallbacks already, so there's no need to keep duplicated content in two locales

feliks.liu and others added 3 commits September 1, 2025 15:50
…eeds-driven, and tech usage documentation. Enhance clarity and consistency in terminology across various sections, ensuring better understanding for users.
…ections. Update titles and labels for clarity, ensuring consistency across various documentation files.
@liuwei1025
Copy link
Copy Markdown
Contributor Author

liuwei1025 commented Sep 1, 2025

I have updated all the files to Chinese and verified them locally.
Certain terms remain untranslated.

@illright illright requested a review from Copilot September 10, 2025 19:18
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 68 out of 68 changed files in this pull request and generated no new comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@illright
Copy link
Copy Markdown
Member

Thanks! There seems to be a build error still, could you also address that please?

@Gaic4o
Copy link
Copy Markdown
Contributor

Gaic4o commented Sep 26, 2025

@liuwei1025, since the conflicts hadn’t been fixed for a while, I went ahead and resolved them in i18n.js and updated the locale settings in package.json.
@illright I’ve pushed the commit, so it would be great if you could kindly review it when convenient.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Sep 27, 2025

built with Refined Cloudflare Pages Action

⚡ Cloudflare Pages Deployment

Name Status Preview Last Commit
pr-fsd ✅ Ready (View Log) Visit Preview 3c118c3

@illright illright merged commit 8e11ec0 into feature-sliced:master Sep 27, 2025
3 checks passed
Gaic4o pushed a commit to Gaic4o/documentation that referenced this pull request Dec 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants