Описание
**For Forge 1.14.x users:** [MixinBootstrap](https://modrinth.com/mod/mixinbootstrap)
(or any alternative Mixin loader) is required.
**For Forge 1.13.x users:** [ModernMixins](https://modrinth.com/mod/modernmixins)
(or any alternative Mixin loader) is required.
**Telemetry Settings:** You can adjust the telemetry level by creating/editing `config/enchlevel-langpatch-telemetry.txt`.
See our [Privacy Policy](https://privacy.ellp.mods.hixland.com/privacy) for more information.
Without the patch:

With the patch:

## Common alternative formats
* Want pure arabic numerals (e.g. Sharpness 5)? [Download Stub Mod](https://cdn.modrinth.com/data/Lf4kDKU9/versions/qorRXLT9/lpstub-all_arabic-20260602.3.jar)
* Want roman numerals (e.g. Sharpness XXV)? [Download Stub Mod](https://cdn.modrinth.com/data/Lf4kDKU9/versions/qorRXLT9/lpstub-roman-20260602.3.jar)
These stub mods should be loaded *with* LangPatch itself.
## I18n API
This mod supports a limited configuration of enchantment level and potion effect level formatting through language files.
### Template Keys
* **`enchantment.level.x`** & **`potion.potency.x`**:
Modify the templates for enchantment levels and potion effect levels, respectively.
* **Default value:** `"%s"`
### Format Types
* **`langpatch.conf.enchantment.default.type`** & **`langpatch.conf.potion.default.type`**:
Modify the format of enchantment levels and potion effect levels, respectively.
| Value | Format | Example |
| :--- | :--- | :--- |
| `simplified`, `chinese`, `zh_normal` | Lowercase Chinese numerals | 一百二十三 |
| `traditional`, `zh_upper` | Uppercase Chinese numerals (traditional) | 壹佰貳拾叄 |
| `numeral`, `number`, `numeric`, `arabic`, `default` | Arabic numerals (default) | 123 |
| `roman` | Roman numerals | CXXIII |
| `skip`, `ignore` | No change (e.g., for only replacing other text) | — |
### Override
* **`langpatch.conf.enchantment.override`** & **`langpatch.conf.potion.override`**:
Whether to override existing translations. Acceptable values are `"true"` or `"false"`.
* If set to `"true"`, existing translations will be replaced. See the implementation of the "pure arabic numeral" pack above.
## For Developers
LangPatch, as is named, allows developers to make dynamic changes to in-game translations without directly modifying lang files.
To introduce LangPatch API as a dependency:
```groovy
repositories {
// Our new maven (2nd change)
maven { url = "https://maven.hixland.com" }
}
dependencies {
compileOnly("xland.mcmod:enchlevel-langpatch:3.1.0")
}
```
Online javadoc can be found [here](https://teddyxlandlee.github.io/enchlevel-langpatch/javadoc).