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.

converting text to a key isn't working

See original GitHub issue

I have a .vue file and in that vue file, I have a tag like this:

Player

I select Player and the lightbulb shows up with the option to “extract text into i18n messages”. I select that option and a message box pops up that asks me for the key value, I enter navbar.player. It then asks me what text to replace Player with in the template. I choose '{{$t(‘navbar.player’)}}. It then asks me for the path to en.json. I enter: _initial.json and hit enter.

After I do that, nothing changes in _initial.json. The key value pair is not added. And I see no error message or anything.

The other part of this is that I have the following file structure, which the docs say doesn’t need any configuration. The only configuration I have is “i18n-ally.keystyle”: “nested”,

here is the file structure: src/locales -en-us –_initial.json –componentA.json -fr –_initial.json –componentA.json

Extension Version

1.11.4

Framework/i18n package you are using

vue-i18n

To Reproduce see the steps above

Device Infomation

  • OS: Windows
  • Version: 10
  • VSCode Version: 1.41.1

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

🈶 Activated, v1.11.4

――――――

💼 Workspace root changed to "...\SkyCourt.UI\SPA"
📦 Packages file "package.json" founded
🕳 Packages file "pubspec.yaml" not exists
🕳 Packages file "composer.json" not exists
🕳 Packages file "Gemfile" not exists
🌞 Enabled
🐱‍🏍 "Vue" framework(s) detected, extension enabled.

🚀 Initializing loader "...\SkyCourt.UI\SPA"

⚠ No locales paths.

✅ Loading finished

――――――

💾 Writing _initial.json

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
gregverescommented, Jan 29, 2020

Ok. I will work on creating a reproducible repo. It may take me a while. I am neck deep in trying to get Vue unit testing setup on my project.

0reactions
gregverescommented, Jan 30, 2020

let’s consider this one closed since the issue was bad config in the workspace VSCode settings. I might open another one about using typescript

Read more comments on GitHub >

github_iconTop Results From Across the Web

Convert to plain text not working - Microsoft Community
I am trying to convert fields to plain text in Word (Office 2016). This used to be done using Ctrl+Shift+F9 but now that...
Read more >
5 Methods to Fix Keyboard Typing Wrong Letters in Windows ...
Open Word, go to File > Options. Under the Proofing tab, select AutoCorrect Options. Find AutoCorrect entries that convert letters and ...
Read more >
Solved: Keyboard Not Working after VMWare Conversion
I've run a VMware conversion and converted it to a vm 9 image file. When it gets opened in VMware Player everything works...
Read more >
Excel: convert text to number with formula and other ways
This method does not work in some scenarios. For example, if you apply the Text format to a cell, enter a number, and...
Read more >
How to convert a character to key code? - Stack Overflow
You can P/Invoke VkKeyScan() to convert a typing key code back to a virtual key. Beware that the modifier key state is important,...
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