Skip to content

支持设置默认语言 #7047

Closed
Closed
@ruibaby

Description

@ruibaby

前置条件

  • 已经在 Issues 列表中搜索了相关问题。
  • 这是和 Halo 相关的特性,如果是非项目本身的问题,建议在 Discussions 提交。
  • 如果是插件和主题特性建议,请在对应的插件和主题仓库提交。

你当前使用的版本

2.20.9

描述一下此特性

目前 Halo 部分界面支持了 i18n,但目前自动选择语言依靠的是浏览器或者系统的语言,针对于 Halo 的使用场景,通过这种方式确定默认语言并不可靠。应该通过搭建网站的用户来自行决定(比如网站本身就是发布的英文内容,不能根据访客语言把界面上的文字改为其他语言),因为 Halo 目前并不支持多语言内容,也没有计划提供支持

尤其是当主题提供了多语言版本的时候,这个问题会更加明显,很可能出现一个页面上内容和 UI 元素的语言不一致。

/kind feature
/area core
/area ui

附加信息

No response

Metadata

Metadata

Assignees

Labels

area/coreIssues or PRs related to the Halo Corearea/uiIssues or PRs related to the Halo UIkind/featureCategorizes issue or PR as related to a new feature.priority/important-soonMust be staffed and worked on either currently, or very soon, ideally in time for the next release.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions