

Данный мод переводит ZetAspects. По умолчанию поставляется русская локализация.
To add your localisation, place the appropriate settings in one of the 2 directories:
BepInEx\plugins\NovaGC-ZetAspectsTranslator\NovaGC-ZetAspectsTranslator\translationsRisk of Rain 2_Data\StreamingAssets\LanguageOverrides\ZetAspectsIt 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
./tokensor any directory other than the configuration directory
All localization json files must match their schemas for the mod to work correctly:
settings.schema.json - for configurationstokens.schema.json - for tokensThese 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"
}
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."
}
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"
}
]
}
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.
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
After the project is built, all files are collected in the
publicdirectory.
ZetAspectsTranslator.slnZetAspects:
In "Solution" tab add a reference to ZetAspects to the ZetAspectsTranslator project.
ZetAspectsTranslator>ZetAspectsTranslator>Dependencies>.NETStandard 2.1>Assemblies>Reference...>Add From...
Select path to ZetAspects.dll.
BepInEx\plugins\William758-ZetAspects\ZetAspects\ZetAspects.dll
Uncheck Copy local in ZetAspects reference
The steps for Visual Studio are similar