Skip to content

⚠ WARN: Failed to locate key #1365

@DrBearZay

Description

@DrBearZay

Describe the bug

使用zh-cn.ts时,即"i18n-ally.enabledParsers": ["ts"],
解析正常,inline annotation 也正常生效,但是cmd + left click只能跳转到文件,到不了具体的key位置,报错:

⚠ WARN: Failed to locate key "foo.bar".

使用zh-cn.json时,即"i18n-ally.enabledParsers": ["json"],
foo.bar这种key能正确locate;但是foo.bar[1]这种形式的key还是会报错Failed to locate key,和上述使用ts时的表现一致(解析正常,inline annotation 生效,但是cmd + left click只能跳转到文件,到不了具体的key位置),必须要写成foo.bar.1这样才能正常跳转

Extension Version
i18n Ally 2.13.1

Framework/i18n package you are using
vue

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions