著者:
    作成:2024-08-11最終更新: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();
    // ...