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

Activity

  1. Molunerfinn commented on Oct 18, 2023

    @Molunerfinn
    Owner

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

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