This tool allows you to convert Minecraft language files in different formats:
- LANG: Java Edition 1.12.2 and below, and Bedrock Edition.
- JSON: Java Edition 1.13 and above.
You can go to HERE to download.
- First of all, you need to install node.js. To get it, click HERE.
- To convert LANG to JSON, go to the
LANG to JSON
directory. To convert JSON to LANG, go to theJSON to LANG
directory. - Place the language files in LANG/JSON format to be converted in the 'input' directory. You can place more than one file.
- Double click on
convert.bat
and it will do the conversion. - The result of the conversion will be saved in the
output
directory.
- If you want to clear the
input
directory, double click onclear_input.bat
. - If you want to clear the
output
directory, double click onclear_output.bat
.
-
Getting an error when double clicking
convert_json_to_lang.js
orconvert_lang_to_json.js
.
Please double-clickconvert.bat
to run the conversion. -
Getting
'node' is not recognized as an internal or external command.
message.
You may not have node.js installed, or your system environment variables may not be configured correctly.
Please install node.js to fix the problem.
If you are sure you have node.js installed and the problem continues, follow these steps:
(1) PressWindows
+R
key, then typecontrol
to open Control Panel.
(2) Go to System and Security -> System -> Advanced System Settings -> Environment Variables
(3) In "User variables" or "System variables" find variablePATH
and add node.js folder path as value. Usually it isC:\Program Files\nodejs;
. If variable doesn't exists, create it.
(4) Restart your computer. -
Getting
Error: The 'input' directory does not exist, so recreated it. Put one or more language files in LANG/JSON format into that directory you want to convert, and run the converter again.
message.
You removed theinput
directory, so the converter won't work. It will re-create the directory, prompt you to place one or more LANG/JSON files to be converted, and then re-run the converter. -
Getting
An error occurred while creating the 'input'/'output' directory.
message.
Please make sure that the directory where the converter is located has write permission, and there is no read-only file namedinput
oroutput
. -
Getting
Error: No files available for conversion.
message.
Please make sure theinput
directory has one or more LANG/JSON file you want to convert, otherwise the converter will not work properly. -
Getting
Warning: <Filename> is not a valid JSON file. Skipping it.
message.
Make sure the JSON file is valid, otherwise it will be skipped. Please check for missing or extra commas, double quotes, colons and curly brackets and correct them. -
Getting
An error occurred while saving <Filename>.
message.
Make sure that theoutput
directory has write permissions and does not have a read-only file named the same as the file that will be saved. -
Getting
Error: No valid JSON files available for conversion.
message.
Make sure all JSON files located in theinput
directory are valid. Please check for missing or extra commas, double quotes, colons and curly brackets and correct them.
If you can't solve these problems, or have a problem that I didn't list, welcome to my Discord server for assistance.