Skip to content

Translation

CelestialAbyss edited this page Jun 20, 2024 · 2 revisions

Due to the fact that the lang files are generated virtually by KubeJS, there are no JSON files to edit.

This modpack is also written to dynamically change depending on which mods are utilized, so it's not viable to use traditional lang files as the same translation key will have different text when a different combination of mods are present with each version of the modpack.

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 similarities between the JS and JSON lang files.

JS Create tooltip:

ClientEvents.lang('en_us', event => {
    // this does not use the help of the prototype JS class so you will have to manually type out the translation keys in addition to the color palette of the Create tooltip.
    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."
    })
    // this uses the help of the prototype JS class so it's easier to type.
    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": "ICESTONE",
  "block.aether.icestone.tooltip.summary": "It's so cold that it turns lava into obsidian and water into ice from a distance.",
  "block.aether.incubator.tooltip": "INCUBATOR",
  "block.aether.incubator.tooltip.summary": "Hatches moa eggs, but it takes a while.",
  "block.aether.incubator.tooltip.condition1": "Fuel source",
  "block.aether.incubator.tooltip.behaviour1": "Uses _Ambrosium torches_ as fuel."
}

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