https://github.com/deftu/textualizer
An extension upon Textile which has it’s own custom I18n implementation.
https://github.com/deftu/textualizer
Last synced: about 2 months ago
JSON representation
An extension upon Textile which has it’s own custom I18n implementation.
- Host: GitHub
- URL: https://github.com/deftu/textualizer
- Owner: Deftu
- License: lgpl-3.0
- Created: 2024-07-04T21:18:13.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-03-21T15:19:25.000Z (2 months ago)
- Last Synced: 2025-04-05T18:56:14.613Z (about 2 months ago)
- Language: Kotlin
- Size: 179 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Textualizer
Custom localization solution for all Minecraft versions.
---
[](https://s.deftu.dev/discord)
[](https://s.deftu.dev/kofi)---
# For users
## Why do I need this?
Minecraft's (and Forge's) language management system is very buggy and inconsistent across several Minecraft versions. This library aims to provide a consistent and reliable way to manage translations in your mods.## Is it going to affect my FPS / performance?
No. The library doesn't add anything which would affect performance outside of the initial loading of the translations and language switching.---
# For developers
## Setup
You need to add it as a dependency in your `build.gradle(.kts)` file.
```kt
repositories {
maven("https://maven.deftu.dev/releases")
}dependencies {
modImplementation("dev.deftu:textualizer--:")
}
```
Of course, replace `` with the version of Minecraft you are developing for, `` with the mod loader you are developing for, and `` with the version of the library you want to use.## Usage
To create a translated string, you can use
```java
import dev.deftu.textualizer.minecraft.MCLocalization;String text = MCLocalization.get("com.example");
```To create a translated string with arguments, you can use
```java
import dev.deftu.textualizer.MCLocalization;int number = 10;
String text = MCLocalization.get("com.example", number);
```---
[](https://bisecthosting.com/deftu)
---
**This project is licensed under [LGPL-3.0][lgpl3].**
**© 2024 Deftu**[lgpl3]: https://www.gnu.org/licenses/lgpl-3.0.en.html