Skip to content

Translation

CelestialAbyss edited this page Jan 10, 2024 · 2 revisions

Due to the fact that the lang files are generated virtually by KubeJS, there are no JSON files to edit. You will have to clone the repository and make a Pull Request for this folder path:

Note

This page is a work in progress.

client_scripts/asset_scripts/lang

Currently en_us lang files are handled within the client_scripts/asset_scripts/lang/en_us folder.

While going through the .js files you will notice a common theme:

Partial JSON resemblance

ClientEvents.lang('en_us', event => {
    GRAY_PALETTE('aether:book_of_lore')
    event.addAll('aether', {
        "item.aether.book_of_lore.tooltip": "BOOK OF LORE",
        "item.aether.book_of_lore.tooltip.summary": "Place an item from _The Aether_ mod in the slot to learn more about it."
    })
    event.addAll(
        'aether',
        createTooltip('aether:icestone')
            .addSummary('It\'s so cold that it turns lava into obsidian and water into ice from a distance.')
            .build()
    )
    event.addAll(
        'aether',
        createTooltip('aether:incubator')
            .addSummary('Hatches moa eggs, but it takes a while.')
            .addBehaviour([
                'Fuel source',
                'Uses _Ambrosium torches_ as fuel.'
            ])
            .build()
    )
})

JSON equivalent:

{
  "item.aether.book_of_lore.tooltip": "BOOK OF LORE",
  "item.aether.book_of_lore.tooltip.summary": "Place an item from _The Aether_ mod in the slot to learn more about it.",
  "block.aether.icestone.tooltip.tooltip": "ICESTONE",
  "block.aether.icestone.
}

Main


1.20.1

Changelogs

1.19.2

1.19.2 changelog sections

Work in progress due to a restructure of the GitHub Wiki. Use the Pages dropdown menu above the custom side bar temporarily while this is sorted.

Clone this wiki locally