articy-xlsx-loader
    TypeScript icon, indicating that this package has built-in type declarations

    0.2.0 • Public • Published

    articy-xlsx-loader

    Webpack loader to convert .xlsx localization files exported by Articy and convert them into JS objects mapping localization IDs to localized strings.

    Meant to be used with Articy Node.

    Install

    npm install --save-dev articy-xlsx-loader
    yarn add -D articy-xlsx-loader
    

    Usage

    Add a rule to your webpack config.

    module.exports = { 
      module: { 
        rules: [
          { test: /\xlsx$/, loader: "articy-xlsx-loader" }
        ]
      }
    }

    You can then pass the imported JSON object into the Localization class in articy-node.

    import { Database } from "articy-node";
    
    // Import Articy JSON data
    import GameData from "./exported.articy.json";
    
    // Create a new database
    const GameDB = new Database(GameData);
    
    // Add localization data
    GameDB.localization.add('en', require('./loc_All objects_en.xlsx'));

    Keywords

    none

    Install

    npm i articy-xlsx-loader

    DownloadsWeekly Downloads

    0

    Version

    0.2.0

    License

    MIT

    Unpacked Size

    14.4 kB

    Total Files

    13

    Last publish

    Collaborators

    • brwarner