lokalise / i18n-ally

🌍 All in one i18n extension for VS Code
https://marketplace.visualstudio.com/items?itemName=lokalise.i18n-ally
MIT License
3.89k stars 307 forks source link

'i18n-ally.detect_hard_strings' can not work with 'import { type xx} from 'xxx'; #1167

Open yao8384 opened 2 months ago

yao8384 commented 2 months ago

Describe the bug

'i18n-ally.detect_hard_strings' can not work with 'import { type xx} from 'xxx';

but 'import type {xx} from 'xxx'; work well

Extension Version

i18n Ally v2.12.0

Framework/i18n package you are using

"vue-i18n": "^9.13.1"

Device Infomation Version: 1.90.0 (system setup) Commit: 89de5a8d4d6205e5b11647eb6a74844ca23d2573 Date: 2024-06-04T19:33:54.889Z Electron: 29.4.0 ElectronBuildId: 9593362 Chromium: 122.0.6261.156 Node.js: 20.9.0 V8: 12.2.281.27-electron.0 OS: Windows_NT x64 10.0.22631

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

🐛 ERROR: SyntaxError: Unexpected token, expected "," (7:24)
SyntaxError: Unexpected token, expected "," (7:24)
Harris-H commented 1 month ago

the same question. if have the content. hard-coded strings detect is useless.