作者:
    Creation:2024-08-11Last update:2025-11-22

    CLI SDK

    CLI SDK 是一个库,允许您在自己的代码中使用 Intlayer CLI。

    bash
    npm install @intlayer/cli --save-dev
    

    使用示例:

    ts
    import {
      push,
      pull,
      fill,
      build,
      listContentDeclaration,
      testMissingTranslations,
      docTranslate,
      docReview,
      extract,
    } from "@intlayer/cli";
    
    push();
    // ...
    pull();
    // ...
    fill();
    // ...
    build();
    // ...
    listContentDeclaration();
    // ...
    testMissingTranslations();
    // ...
    docTranslate();
    // ...
    docReview();
    // ...
    extract();
    // ...