Giter Site home page Giter Site logo

Comments (12)

youngboo avatar youngboo commented on July 19, 2024

我也是

from kiwi.

linla95 avatar linla95 commented on July 19, 2024

在根目录下面新建一个langs文件夹和对应语言包的文件夹,比如zh_CN试试

from kiwi.

xiaohuoni avatar xiaohuoni commented on July 19, 2024

官方demo里面就有这些文件

from kiwi.

xiaohuoni avatar xiaohuoni commented on July 19, 2024

https://github.com/alibaba/kiwi/tree/master/kiwi-demo

from kiwi.

linhuiw avatar linhuiw commented on July 19, 2024

应该是配置的问题,我这边看下,这两天会修复。

from kiwi.

xiaohuoni avatar xiaohuoni commented on July 19, 2024

好的

from kiwi.

linla95 avatar linla95 commented on July 19, 2024

@linhuiw 好像是这个原因,kiwi-linter/src/file.ts 里面的这段代码

 if (!fs.existsSync(targetFilename)) {
   // 当文件不存在的时候创建文件,writeFileSync不能创建目录
    fs.writeFileSync(targetFilename, generateNewLangFile(fullKey, text));
    addImportToMainLangFile(filename);
    vscode.window.showInformationMessage(`成功新建语言文件 ${targetFilename}`);
  }

fs 创建目录

from kiwi.

linla95 avatar linla95 commented on July 19, 2024

mkdirpSync 应该可以满足要求

from kiwi.

linhuiw avatar linhuiw commented on July 19, 2024

kiwi linter 的新版本中已经修复。

默认重启 vscode 即可。

from kiwi.

xiaohuoni avatar xiaohuoni commented on July 19, 2024

👍

from kiwi.

xiaohuoni avatar xiaohuoni commented on July 19, 2024

@linhuiw 更新完,连标记中文的功能都没有了

from kiwi.

linhuiw avatar linhuiw commented on July 19, 2024

@xiaohuoni 应该是未初始化项目,可以在项目的 Demo 项目里试一下。

或者使用 kiwi-cli 初始化项目。 具体可以加钉钉群聊。

from kiwi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.