Invalid keypath!
See original GitHub issueDescribe the bug Attempting to use the yellow lightbulb to extract text results in a toast warning that merely says “Invalid keypath!”
Nothing actually happens beyond that.
The locale file is found, and it is inserting the correct translations, but i can’t extract any new strings into the locale file.
Extension Version i18n Ally 2.4.2.1
Framework/i18n package you are using vue-i18n
To Reproduce Steps to reproduce the behavior:
- Find text
- attempt to “Extract text into i18n messages”
- toast
Device Infomation
- OS: ubuntu
- Version: 20.04.2
- VS Code Version: 1.53.2
Extension Log
Go to View
-> Output
-> i18n Ally
, and paste the content below. You should mask any sensitive information
🧰 Config “i18n-ally.ignoreFiles” changed, reloading 🔁 Reloading loader 🧩 Enabled frameworks: Vue 🧬 Enabled parsers: json, yaml, json5
🚀 Initializing loader “…/” 📂 Directory structure: file 🗃 Path Matcher Regex: /^(?<locale>[\w-_]+).(?<ext>json|ya?ml|json5)$/
📂 Loading locales under …/src/locales 📑 Loading (en) en.json [1613458417846.2485] 📑 Loading (jp) jp.json [1613456620381.2478]
👀 Watching change on …/src/locales ✅ Loading finished
Screenshots
Issue Analytics
- State:
- Created 3 years ago
- Comments:13 (6 by maintainers)
Top GitHub Comments
src/locales/en.json
I think i found the problem:
the
f
isn’t capitalizedstring is “Create Story”, it auto generates a key “home.create-story”