Many Translations

Quick rating

Community listing page, reviews here may not be monitored by the author.

Many Translations

No reviews yet

Split translation files into many for clear separation!

Mod Loaders
NeoForge
Fabric
Minecraft

Community voices

Reviews

List view
Grid view
Compact view
Sort by
Date
Rating
Helpful
Unhelpful
Edited
Sort ascending
Show per page
10
25
50
Delete this review?

This removes your review from the project. You can write a new review after.

Review submitted for moderation

Your review has been sent to moderators, who will check that it meets our guidelines before it appears publicly.

No reviews yet. Be the first to review this project!

Get it on

Available Platforms

About

Project Details

Type
Mod
Latest Version
merged-1.21.1-1.0.0

For authors

Embed Badge

If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.

Custom banner text
ModDex rating badge preview

Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.

Identifiers

Platform IDs

CurseForge ID

Resources

External Links

Source Issues Wiki Discord

About

Description

Hi, occasionally I like to just test what's possible, this is a result of that urge.

I got really tired of dealing with SUPER LONG / cumbersome translation files, if you reference vanilla's translations for 1.21.1 it's already at/nearing 500Kb of raw text... and trying to developer large-scale content mods you run into similar issues (assume you're not data-genning, but even then the scale can get crazy.) So...

Many Translations!

This is a small shared-library mod that lets any mod (or resource pack) split a single language file into several smaller ones, instead of maintaining one giant (or multiple giant) files.

What problem does this solve though, really?

Vanilla loads exactly one file per namespace per language code: assets/<namespace>/lang/<code>.json.

ClientLanguage.loadFrom does an exact path lookup (String.format("lang/%s.json", code)); it never scans the lang/ directory, so mods with a lot of content end up with increasingly large, hard-to-review JSON files. Or more typically, a single giant "en_us.json" file.

How it works

ClientLanguageMixin, redirects the ResourceManager#getResourceStack(...) call inside ClientLanguage#loadFrom.

After fetching the normal exact-match stack for lang/<code>.json, it also looks up (via ResourceManager#listResourceStacks) every resource in the same namespace matching lang/<code>_*.json, sorts those matches by filename, and traverses them in that order.

Translation keys are merged in file order, so later files wins on collisions.

Okay, how do I use it?

Create your mod like normal! Use the normal en_us.json / whatever locale code you're building for until it gets overwhelming.

Then with this mod installed, you can simply copy and paste out the huge sections to separate files such as en_us_1.json or en_us_items.json etc.

Note To Developers

This mod can be consumed with CurseMaven for in-development work.

Screenshots

Gallery

  • image-attachment_1db446ce-2103-49e4-a7c0-b6960c2112c1.png
    image-attachment_1db446ce-2103-49e4-a7c0-b6960c2112c1.png

Versions

Files

Relations

Project Relations

More like this

Similar Mods

Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.

On ModDex

Community snapshot

0
Ratings
0
Followers
0
In stacks

By the numbers

Statistics

<1,000
Downloads
Last Updated
Created
Last synced
When ModDex last fetched this project from CurseForge or Modrinth. Every project is re-checked on a schedule, and any project that ships a new file is synced automatically within hours of the release.
New file updates sync automatically
How syncing works