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

Cannot translate values with the hashtag sign ('#') #1247

Open
Smileek opened this issue Dec 10, 2024 · 0 comments
Open

Cannot translate values with the hashtag sign ('#') #1247

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

Comments

@Smileek
Copy link

Smileek commented Dec 10, 2024

Describe the bug
If the string value contains a hashtag sign ('#'), it's being cropped and only the part before the sign is translated.

Extension Version
i18n Ally v2.12.0

Framework/i18n package you are using
vue-i18n

To Reproduce
Steps to reproduce the behavior:

  1. Have a string like that: 'Issue #{num} was opened'
  2. Try to translate it in any possible way (editor, CLI, etc.)
  3. Only "Issue" will be translated

If the string begins with the hashtag, you'll get an "undefined" error, because translating of empty strings is not allowed.

Device Infomation

  • OS: MacOS
  • Version: 14.6.1 (23G93)
  • VS Code Version: 1.95.3

Extension Log

🌍 Translating "%key.nestedKey%" (en->es)
💾 Writing %...%/locales/es.json
✅ Loading finished

Screenshots
image

image

Works well without a hashtag:
image

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