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

Go to translation in local scope (Vue project) #1245

Open
Ericlm opened this issue Dec 8, 2024 · 0 comments
Open

Go to translation in local scope (Vue project) #1245

Ericlm opened this issue Dec 8, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Ericlm
Copy link

Ericlm commented Dec 8, 2024

Describe the bug
I created a Vue project with Vue i18n and the i18n-ally extension. I got global translations in a global project, and a translation on a local <i18n> block. For global translations, the extension works perfectly (cmd+click/arrow goes to the definition). But for local translations (in the i18n block), it doesn't work. However, the translations, even local ones, have the right preview.

Extension Version
i18n Ally v2.12.0

Framework/i18n package you are using
Vue / vue-i18n

To Reproduce
Create local translations with <i18n> block in a Vue component, and then use $t or t in the component. The translation is previewed as expected, but it's not possible to go to it when using cmd+click or with the popover.

Device Infomation

  • OS: macOS
  • Version: 15.1.1 (24B91)
  • VS Code Version: Version: 1.95.3 (Universal)

Extension Log
Go to View -> Output -> i18n Ally, and paste the content below. You should mask any sensitive information

🈶 Activated, v2.12.0

――――――

💼 Workspace root changed to "/Users/.../vue-i18n-ally-local-scope"
🌞 Enabled
🧩 Enabled frameworks: Vue, Vue SFC
🧬 Enabled parsers: json, yaml, json5

📈 Telemetry id: a8f40a59-5677-4c5f-8c6a-8baaf2a3c713
🚀 Initializing loader "/Users/.../vue-i18n-ally-local-scope"
📂 Directory structure: file
🗃 Path Matcher Regex: /^(?<locale>[\w-_]+)\.(?<ext>json|ya?ml|json5)$/

📂 Loading locales under /Users/.../vue-i18n-ally-local
    📑 Loading (en) en.json [1733686301516.9922]

👀 Watching change on /Users/.../vue-i18n-ally-local-scope/src/locales
✅ Loading finished


――――――

📑 Loading sfc /Users/.../vue-i18n-ally-local-scope/src/App.vue
📑 Loading sfc /Users/.../vue-i18n-ally-local-scope/src/App.vue

Screenshots

vue-i18n-ally-local

@Ericlm Ericlm added the bug Something isn't working label Dec 8, 2024
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

No branches or pull requests

1 participant