GithubHelp home page GithubHelp logo

darksidecat / balatro-sprites-i18n Goto Github PK

View Code? Open in Web Editor NEW

This project forked from signez/balatro-sprites-i18n

0.0 0.0 0.0 15.11 MB

Internationalization toolchain to translate Balatro's sprites

License: MIT License

JavaScript 100.00%

balatro-sprites-i18n's Introduction

Balatro sprite internationalization toolchain

This repository contains clean "blank" sprites, sprite elements and scripts used to generate localized sprite sheets for the game Balatro. Those sprite sheets can then be used in community mods to add new languages to the game.

For now, those localized sprites are used in the Better French translation mod and the BalatRO Romanian translation mod. You can use this repository to create your own localized sprite sheets for your language โ€” feel free to create pull requests to add new languages!

Note that unless noted, all the content in this repository is derived from the Balatro game files, ยฉ 2024 LocalThunk. This is a fan project that is not affiliated with LocalThunk or PlayStack.

How to use

  1. Clone this repository
  2. Run npm install to install the required dependencies
  3. Do the localization work inside the locales/xx folder, xx being the language code for the language you want to translate the sprites to!
  4. Run node index.js xx to generate the localized sprite sheets for the language xx

The localized sprite sheets will be generated in the dist/xx folder, in both 1x and 2x resolutions. A test will be run to check if the sprites alpha is the same as the original, reference sprites (in test/reference).

How to contribute

If you want to contribute to this project by translating the sprites to a new language, you can do so by creating a new folder in the locales/ directory, using the language code as the folder name (e.g. locales/fr for French). Then, following the locales/en folder as a reference, you can add the translated sprite elements and texts.

If needed, you can tweak values used by the scripts in the locale/xx/consumables.json file, and request for a specific case to be handled by an new option in the scripts (please file an issue!).

License

This project (except all the artwork extracted or derivated from the Balatro game) is licensed under the MIT License - see the LICENSE file for details.

balatro-sprites-i18n's People

Contributors

signez avatar darksidecat avatar frbmt-bigetnouf avatar olenicandrei avatar macapple96 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.