converting text to a key isn't working
See original GitHub issueI 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.4Framework/i18n package you are using
vue-i18nTo 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:
- Created 4 years ago
- Comments:6 (2 by maintainers)
Top GitHub Comments
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.
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