question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Describe 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:

  1. Find text
  2. attempt to “Extract text into i18n messages”
  3. 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 image image

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
freakypiecommented, Feb 18, 2021

src/locales/en.json

I think i found the problem:

    // "i18n-ally.extract.keyPrefix": "{FileNameWithoutExt}.",
    "i18n-ally.extract.keyPrefix": "{fileNameWithoutExt}.",

the f isn’t capitalized

1reaction
freakypiecommented, Feb 16, 2021

string is “Create Story”, it auto generates a key “home.create-story”

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why does Immutable.js throw Invalid key path on Map.setIn()
This happens because the key 'selector' has a non-Map value. setIn will work if we make sure that the value for 'selector' is...
Read more >
invalid keyPath errors are very cryptic and hard to debug #635
Returns a new Map having set value at this keyPath. If any keys in keyPath do not exist, a new immutable Map will...
Read more >
invalid KeyPath in immutable js when everything looks fine?
invalid KeyPath in immutable js when everything looks fine? Everything works fine but when I click edit button, a comma (,) is add...
Read more >
Invalid keypath - w3c-test.org
Pass, Invalid keyPath - multidimensional array (invalid toString), Asserts run. Pass, assert_throws_dom("SyntaxError", function "function() { db.
Read more >
erikras/redux-form - Gitter
has anyone had an error Uncaught Error: invalid keyPath ? Michael Oakley. @oakley808. @igorbarbashin i've seen that before. It's probably coming from ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found