Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

[Bug]: i18n for command seem like not work #1188

Open
3 tasks done
xinatcg opened this issue Oct 17, 2023 · 1 comment
Open
3 tasks done

[Bug]: i18n for command seem like not work #1188

xinatcg opened this issue Oct 17, 2023 · 1 comment
Assignees
Labels

Comments

@xinatcg
Copy link

xinatcg commented Oct 17, 2023

前置阅读 | Pre-reading

PicGo的版本 | PicGo Version

2.4.0-beta.5

系统信息 | System Information

Mac

问题重现 | Bug reproduce

command 的 i18n 好像不工作. 一直保留注册时候的语言, 比如注册的时候 PicGo 是英语, 注册的就一直是英语, 切换中文不更新.

插件注册的时候 label 使用的是 i18n

const commands = (ctx: IPicGo): any => [
    {
      label: ctx.i18n.translate<IGDriveLocalesKey>('PIC_GDRIVE_COMMAND_UPLOAD'),
      key: 'Ctrl+Alt+0',
      name: 'uploadToGDrive',

相关日志 | Logs

No response

@Molunerfinn
Copy link
Owner

commands的 label 现在会落地到配置文件中,暂时还不支持 i18n,后续会添加 i18nLabel 的属性用来动态获取

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants