PicGo
PicGo copied to clipboard
[Bug]: i18n for command seem like not work
trafficstars
前置阅读 | 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
commands的 label 现在会落地到配置文件中,暂时还不支持 i18n,后续会添加 i18nLabel 的属性用来动态获取