A library that allows translations to have multiple fallbacks (primarily for Emotecraft)
Define translation keys with a default fallback and optional language-specific fallbacks:
{
"translate": "translation.key",
"fallback": "default", // vanilla behavior (fallback for all)
"fallbacks": { // Separated into its own field to avoid breaking compatibility with vanilla
"ru_ru": "дефолт" // fallback for ru_ru
}
}For detailed examples and test cases, refer to the unit tests.