Skip to content

Local Validation

ROBdk97 edited this page Oct 25, 2024 · 1 revision

ini-utils

ini-utils is a utility tool for working with INI files. It provides commands to merge and validate INI files.

Prerequisites

Setup

  1. Clone the repository:

    git clone https://github.com/Dymerz/StarCitizen-Localization.git
    cd <repository-directory>/tools/ini-utils
  2. Install dependencies:

    npm install
  3. Build the project:

    npm run build

Usage

Validate INI Files

To validate INI files, use the validate command. This command checks if all entries from a reference file are present in the source files and if the placeholders match.

node ./dist/src/index.js validate <source> [files...]
  • <source>: Path to the english INI file.
  • [files...]: Paths to the INI files to validate.

Example:

node ./dist/src/index.js validate ../../data/Localization/english/global.ini ../../data/Localization/french_(france)/global.ini
Clone this wiki locally