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

svelte-i18n: i18n key "$_" does not exist #1018

Closed
MichalisWoess opened this issue Sep 16, 2023 · 4 comments
Closed

svelte-i18n: i18n key "$_" does not exist #1018

MichalisWoess opened this issue Sep 16, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@MichalisWoess
Copy link

Describe the bug

Doesn't understand that $_() is accessing the store. Instead, errors with: i18n key "$_" does not exist

Extension Version

2.11.1

Framework/i18n package you are using

svelte-i18n

To Reproduce
Steps to reproduce the behavior:

  1. Use svelte-i18n
  2. $_("your.translation")

Device Infomation

  • OS: macOS
  • Version: 13.5.2
  • VS Code Version: 1.82.2 (Universal)

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

🈶 Activated, v2.11.1

――――――

💼 Workspace root changed to "/Users/michaliswoss/Documents/GitHub/portfolio"
📦 Packages file "package.json" found
🕳 Packages file "pubspec.yaml" not exists
🕳 Packages file "composer.json" not exists
🕳 Packages file "Gemfile" not exists
🌞 Enabled
🧩 Enabled frameworks: Svelte, General
🧬 Enabled parsers: json, yaml, json5

📈 Telemetry id: 7ffed202-4f6f-47af-918d-fcea3ecc3036
🚀 Initializing loader "/Users/michaliswoss/Documents/GitHub/portfolio"
📂 Directory structure: file
🗃 Path Matcher Regex: /^(?<locale>[\w-_]+)\.(?<ext>json|ya?ml|json5)$/

📂 Loading locales under /Users/michaliswoss/Documents/GitHub/portfolio/src/lib/i18n

👀 Watching change on /Users/michaliswoss/Documents/GitHub/portfolio/src/lib/i18n

📂 Loading locales under /Users/michaliswoss/Documents/GitHub/portfolio/src/lib/i18n/locales
	📑 Loading (de) de.json [1694866604581.468]
	📑 Loading (en) en.json [1694866578536.1143]

👀 Watching change on /Users/michaliswoss/Documents/GitHub/portfolio/src/lib/i18n/locales
✅ Loading finished


――――――

Screenshots

image

@MichalisWoess MichalisWoess added the bug Something isn't working label Sep 16, 2023
@MichalisWoess
Copy link
Author

#1003

@terales
Copy link
Collaborator

terales commented Sep 23, 2023

Published fix in v2.12.0

@terales
Copy link
Collaborator

terales commented Sep 23, 2023

@MichalisWoess can you check whether your case was fixed too, please?

@terales terales closed this as completed Sep 23, 2023
@MichalisWoess
Copy link
Author

Yep, works now. Thanks :)

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

2 participants