tutorial:lang
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tutorial:lang [2022/05/27 15:52] – solidblock | tutorial:lang [2024/02/06 10:26] (current) – minecraft wiki rawdiamondmc | ||
---|---|---|---|
Line 3: | Line 3: | ||
===== Creating a lang file ===== | ===== Creating a lang file ===== | ||
- | You can use lang files to provide translations for translatable strings in-game. You'll need to create a file with an appropriate file name for your language-- to find your languages' | + | You can use lang files to provide translations for translatable strings in-game. You'll need to create a file with an appropriate file name for your language-- to find your languages' |
===== Adding a translation ===== | ===== Adding a translation ===== | ||
Line 76: | Line 76: | ||
</ | </ | ||
Then add the ''< | Then add the ''< | ||
- | < | + | < |
+ | // 1.18.2 and below: | ||
tooltip.add(new class_2588(" | tooltip.add(new class_2588(" | ||
tooltip.add(new class_2588(" | tooltip.add(new class_2588(" | ||
- | </ | + | |
- | < | + | // 1.19 and later |
tooltip.add(Text.translatable(" | tooltip.add(Text.translatable(" | ||
tooltip.add(Text.translatable(" | tooltip.add(Text.translatable(" |
tutorial/lang.1653666762.txt.gz · Last modified: 2022/05/27 15:52 by solidblock