Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

希望增添中英文按钮隐藏的配置项 #465

Closed
1 task done
wzdxslzgzbdm opened this issue Oct 17, 2024 · 3 comments
Closed
1 task done

希望增添中英文按钮隐藏的配置项 #465

wzdxslzgzbdm opened this issue Oct 17, 2024 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@wzdxslzgzbdm
Copy link

Clear and concise description of the problem

我的站点暂时还没有双语的需求 所以那个中英文切换按钮放在那完全没有任何用处
4dc78544dc334ee23f9daeaf357a011a

Suggested solution

希望是能在配置文件中对此按钮进行隐藏

Alternative

No response

Additional context

No response

Validations

  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
@wzdxslzgzbdm wzdxslzgzbdm added the enhancement New feature or request label Oct 17, 2024
@WRXinYue
Copy link
Collaborator

WRXinYue commented Oct 17, 2024

只需在 components 文件夹中创建与 YunToggleLocale 同名的组件进行替换即可,如:

<template>
  <div />
</template>

在 site config 可能还需要配置 lang: 'zh-CN'

@YunYouJun
Copy link
Owner

可以使用上面的方案临时解决,后续会考虑添加一个配置开关。

@WRXinYue WRXinYue self-assigned this Oct 23, 2024
@YunYouJun
Copy link
Owner

你可以通过设置 site.config.ts 中的 languages: ['zh-CN'] 来指定只使用一种语言。

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants