ZetAspectsTranslator

v1.0.1·Updated 2025-01-03

Translation of the "ZetAspects" mod

About this mod Author’s original text

ZetAspects Translator

About

This mod translates the ZetAspects mod.

Russian localisation is supplied by default.

Данный мод переводит ZetAspects.

По умолчанию поставляется русская локализация.

Translations

To add your localisation, place the appropriate settings in one of the 2 directories:

  • BepInEx\plugins\NovaGC-ZetAspectsTranslator\NovaGC-ZetAspectsTranslator\translations
  • Risk of Rain 2_Data\StreamingAssets\LanguageOverrides\ZetAspects

It is recommended to use the 2nd option, as the localisation in the 1st directory may be deleted when updating the mod

If the directory is missing, start the game with the mod enabled. All necessary directories and files will be created

Localisation is set using a configuration json file and a tokens json file (optional).

The token files MUST be placed in a separate directory./tokens or any directory other than the configuration directory

Format

All localization json files must match their schemas for the mod to work correctly:

  • settings.schema.json - for configurations
  • tokens.schema.json - for tokens

These files are located in the directories where the localization files are stored.

To apply the schema to your json file, add a $schema field to the root object.

For example:

{

"$schema": "./settings.schema.json"

}

Tokens file

Represents 1 object where fields are tokens and values are translations.

For example:

{

"$schema": "./tokens.schema.json",

"AFFIX_RED_NAME": "Ifrit's Distinction",

"AFFIX_RED_PICKUP": "Become an aspect of fire."

}

Configuration file

Root object:

| Field | Optional | Description |

|:-------------|:--------:|----------------------------------------------------------------------------------|

| language | - | Localization language |

| tokens | + | A list of localization tokens.

_The structure is similar to the tokens file_ |

| extends | + | List of localization dependencies |

Field extends:

| Field | Optional | Default | Description |

|:---------|:--------:|:--------:|---------------------------------------|

| path | - | - | Relative or absolute path to the file |

| type | + | tokens | Dependency type:setting or tokens |

For example:

{

"$schema": "./settings.schema.json",

"language": "en",

"tokens": {

"AFFIX_RED_NAME": "Ifrit's Distinction",

"AFFIX_RED_PICKUP": "Become an aspect of fire."

},

"extends": [

{

"path": "./tokens/eng.base.json"

},

{

"path": "./tokens/eng.items.json",

"type": "tokens"

},

{

"path": "./default.json",

"type": "setting"

}

]

}

Overwrites

Tokens files and other configuration files can be used to set up localization in the configuration file by specifying them in the extends field.

If you specify other configuration file in the dependencies, it will recursively load all the tokens it provides directly from the tokens field and from its extends field.

You can use other configurations regardless of what language they are made for. Only tokens are loaded.

If the same token is downloaded from different sources, the one with the highest priority will be used.

Priority

The tokens field has the highest priority.

Next are the dependencies from the extends field. The priority of a dependency is determined by its order in the list.

The 1st dependency has a higher priority than the 2nd one, the 2nd one has a higher priority than the 3rd one, etc.

Localizations from the Risk of Rain 2_Data\StreamingAssets\LanguageOverrides\ZetAspects directory generally have higher priority than localizations from BepInEx\plugins\NovaGC-ZetAspectsTranslator\NovaGC-ZetAspectsTranslator\translations, so they will always overwrite tokens.

If there are multiple localizations for the same language, higher priority will be given according to alphabetical sorting.

For example, a.json > b.json

Build

After the project is built, all files are collected in the public directory.

Rider

  • Open ZetAspectsTranslator.sln
  • Add Reference to ZetAspects:
  • In "Solution" tab add a reference to ZetAspects to the ZetAspectsTranslator project.

Z

Install & use Install: BepInEx plugin

  1. The archive from playbuff is the mod itself — usually a BepInEx plugin (a .dll or a plugin folder once unzipped).
  2. Recommended: use a community mod manager (such as r2modman) — pick this game, import the mod, and the manager sets up BepInEx and its dependencies for you.
  3. Manual route: install the BepInEx loader in the game folder, then drop the unzipped .dll or plugin folder into BepInEx/plugins/.
  4. Launch the game — the BepInEx console logs every plugin it loads; seeing this mod in the log means it is installed.

Mods with listed dependencies need those installed too, or they will not load. Options are usually changed in-game or in the plugin's config file.

Dependencies

Install these first, or the mod will not work:

bbepis-BepInExPackWilliam758-ZetAspects

File & checksum

Filename
ZetAspectsTranslator-1.0.1.zip
File size
96.8 KiB