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

Text extractions menu is not working correctly #1112

Open
MuhammadSawalhy opened this issue Mar 22, 2024 · 1 comment
Open

Text extractions menu is not working correctly #1112

MuhammadSawalhy opened this issue Mar 22, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@MuhammadSawalhy
Copy link

MuhammadSawalhy commented Mar 22, 2024

Describe the bug
I was happy using this extension which made my life easier regarding localization. One of the features that I most used is the text extraction feature. Now when I extract text from the code the menu is not rendered correctly, the behaviour is different when I type a key starting with Home and when not. See the screenshots below.

Content of the file ./messages/en.json:
{
  "NavBar": {
    "login": "Login",
    "get-started": "Get started",
    "contact-us": "Contact us",
    "pricing": "Pricing",
    "templates": "Templates",
    "nav-bar": "Navigation bar",
    "toggle-navbar": "Toggle navbar",
    "about-us": "About us"
  },
  "Footer": {
    "sitemap": "Sitemap",
    "social-media": "Contact us on",
    "terms": "Terms",
    "privacy": "Privacy"
  },
  "Home": {
    "Hero": {
      "try-it-now": "Try it now",
      "hero-image-alt": "Two screens of a mobile and laptop showing a website",
      "description": "Create a stunning website that reflects your expertise, tailored for professionals in every industry. Design, customize, and launch your own website in minutes – no technical hurdles, just professional results.",
      "title": "Create Your <primary>personal website</primary> in only <primary>3 steps</primary>"
    },
    "ThreeSteps": {
      "title": "3 <primary>Simple</primary> Steps",
      "select": "Select Template & Domain",
      "image-alt": "Step {number} illustration",
      "design": "Design",
      "publish": "Publish"
    },
    "HowItWorks": {
      "image-alt": "How it Works",
      "how-it-works": "How it <primary>Works</primary>",
      "need-support": "Need Support?",
      "get-help": "Get help now from one of our team members!",
      "call-support": "Call Support",
      "one": {
        "title": "Enhance your online presence",
        "description": "Get online quickly with a bilingual website domain, hosting and professional email."
      },
      "two": {
        "title": "Website essentials",
        "description": "Create and customize your website with our easy-to-use website builder and have all your career essential data nicely displayed."
      },
      "three": {
        "title": "All data in one place",
        "description": "Have all your data gathered and displayed for your customers in one place."
      },
      "four": {
        "title": "Professional credibility",
        "description": "Extend your trust and professional credibility showcasing your expertise, knowledge, academic background."
      }
    },
    "PowerfulBenefits": {
      "description": "Unleash Your Website's Potential: Our <primary>Powerful Benefits</primary>",
      "your-vision-our-future": "Your Vision, Our Future.",
      "one": {
        "title": "Website Building Support",
        "description": "Expert support from start to finish. Build your website with confidence and ease."
      },
      "two": {
        "title": "Social Media Integration",
        "description": "Integrate social media effortlessly. Amplify your reach and engage your audience."
      },
      "three": {
        "title": "Bilingual Support",
        "description": "Break language barriers. Create a bilingual website for diverse audiences worldwide."
      },
      "four": {
        "title": "Responsive Design",
        "description": "Optimized for all screens. Exceptional user experience, anytime, anywhere."
      },
      "five": {
        "title": "Hosting Service",
        "description": "Consistent availability, fast performance. Hassle-free hosting for your website."
      },
      "six": {
        "title": "Custom Domain",
        "description": "Stand out with a custom domain. Craft a professional online identity with ease."
      },
      "seven": {
        "title": "SSL Security",
        "description": "Prioritize security with SSL. Build trust and safeguard sensitive information."
      },
      "eight": {
        "title": "Customer Service",
        "description": "Personalized support for you. Dedicated to your satisfaction and website success."
      }
    }
  }
}

Extension Version
i18n Ally (v2.12.0)

Framework/i18n package you are using
Next.js 14 / next-intl

To Reproduce
Steps to reproduce the behavior:

  1. Select text and run the extraction command
  2. Start typing the key Home.
  3. See the error, the auto-completion menu is not working

Device Infomation

  • OS: WSL2 (Ubuntu 22.04) in Windows 10
  • Version:
  • VS Code Version: 1.87.2

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 "/home/ms/myp/scicave/tekview-frontend"
📦 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: next-intl, General
🧬 Enabled parsers: json, yaml, json5

📈 Telemetry id: adad02ad-b347-49f1-a372-ca5fdb37cb4d
🚀 Initializing loader "/home/ms/myp/scicave/tekview-frontend"
📂 Directory structure: file
🗃 Path Matcher Regex: /^(?<locale>[\w-_]+)\.(?<ext>json|ya?ml|json5)$/

📂 Loading locales under /home/ms/myp/scicave/tekview-frontend/messages
	📑 Loading (ar) ar.json [1711058538335.7646]
	📑 Loading (en) en.json [1711075028428.0754]

👀 Watching change on /home/ms/myp/scicave/tekview-frontend/messages
✅ Loading finished


――――――


Screenshots

When typing any key not starting with Home.:
image

When typing a key starting with Home.:
image

@MuhammadSawalhy MuhammadSawalhy added the bug Something isn't working label Mar 22, 2024
@MuhammadSawalhy MuhammadSawalhy changed the title Text extractions menu is not working correctly, dumped JSON appears Text extractions menu is not working correctly Mar 22, 2024
@lbebeck
Copy link

lbebeck commented Mar 26, 2024

Hey there,

I'm facing the same issue with the text extractions menu not working on VS Code Version 1.87.2 and Windows 10 using "i18n Ally (v2.12.0)."

The problem started right after updating to 1.87.2. I downgraded to 1.85, and the plugin worked again.

Seems like there might be a compatibility issue with the latest VS Code update. Hopefully, this information helps in troubleshooting the problem. Looking forward to a compatibility fix soon 👍

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