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

gotoKey.ts dosen't check keyStyle #721

Open
paulo20223 opened this issue Jan 21, 2022 · 2 comments · May be fixed by #1062
Open

gotoKey.ts dosen't check keyStyle #721

paulo20223 opened this issue Jan 21, 2022 · 2 comments · May be fixed by #1062
Labels
bug Something isn't working

Comments

@paulo20223
Copy link

paulo20223 commented Jan 21, 2022

Describe the bug
Format my lang file '/lang/en-US.js'
{"nav": {"account": "Account"}}

Code where i choice translate
$t("nav.account")

but i get error, because it doesn't search recursive.
`Failed to locate key "nav.account"'

Extension Version
2.8.3

**Path file
/src/commands/manipulations/gotoKey.ts

Screenshots
image

image

@paulo20223 paulo20223 added the bug Something isn't working label Jan 21, 2022
@adrian-amigues
Copy link

I have a similar problem, using a .js file also

@daolanfler
Copy link

daolanfler commented Dec 6, 2023

same here, I'm using .ts files, from the source code it seems that parseAST is only implemented for json and yaml. For ecmascript, there is neither custom navigateToKey nor custom parseAST implementation, so there is no way to locate the key position....

@daolanfler daolanfler linked a pull request Dec 9, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

Successfully merging a pull request may close this issue.

3 participants