Giter Club home page Giter Club logo

spxlocaleeditor's Introduction

SPX LocaleEditor app

Manage language files for SPX Graphics Controller.

Readme updated May 27 2024.

Principle

The user interface of SPX Graphics Controller can be localized. The utility application in this repo makes it easy to modify locales/<language>.json -files.


Working principle

SPX server has a locales subfolder and there are multiple json -files, one per language. SPX source code uses strings with a <category>.<key> syntax, from the currently active locale-file.

The structure of the locale files are identical, but the value properties are the translated language strings. See the below example where the key is red in the color category:

// simplifiedChinese.json
 "color": {
    "red": "红色"
 }

// finnish.json
 "color": {
    "red": "punainen"
 }

Install and run

git clone <github url> .   // get source
node install               // install dependencies
npm run dev                // run in dev mode

Remember You need to change the jsonsPath variable in index.js to point to the folder with your SPX locale files!


Usage

The UI is very simple. All found locale files are shown in the UI, then you choose the category and selected key is shown in the text fields.

If you want to create a new language file, simply copy english.json to <mylanguage>.json, reload the app and start entering values for each of the strings.

Principle

spxlocaleeditor's People

Contributors

tuomoku avatar

Watchers

 avatar

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.