Skip to content

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

Description

@xinatcg

前置阅读 | 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

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions