lokalise / i18n-ally

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

不知道为什么一直找不到翻译文件 #1111

Open webchencong opened 6 months ago

webchencong commented 6 months ago

Describe the bug

我下载了i18n Ally提示zh-CN: 文案路径 "D:\zzySys\zzy-mes-web\src\locales.warehouseManagement.businessProcess" 不存在(i18n-ally-key-missing)我的zzy-mes-web下的src下的locales是存在的并且下面有ch-CN.ts(D:\zzySys\zzy-mes-web\src\locales\zh-CN.ts)这还少他的路径里面也配置了相应的key以及value,我的同事是没有问题的可以翻译出来中文 Extension Version

v2.12.0

Framework/i18n package you are using

vue-i18n To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'=
  3. See error

Device Infomation

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

zh-CN: 文案路径 "D:\zzySys\zzy-mes-web\src\locales.warehouseManagement.warehouseType" 不存在(i18n-ally-key-missing)

Screenshots

1710743563553 1710743581766 image image

wenyongda commented 5 months ago

ts 的export出对象,会带上对象名称,我也遇到这个问题了,不知道怎么把对象名称去掉

ren-meng-xue commented 4 months ago

请问解决了吗

itskaiway commented 2 weeks ago

The file is recommended to end with .json