To add a new language to NiceHash QuickMiner, follow these steps:
- Download the template: Download
dump_en.json from the /lang/ directory. - Modify strings: The JSON file contains arrays where the first element is a token and the second is the string. Modify only the second element of the array.
- Naming convention: Name the file using the two-letter language code followed by
.json (e.g., de.json, pt.json, es.json). - Requirements: The file must be in JSON format and use UTF8 encoding.
- Verification: Ensure your JSON is valid using a tool like JSON Formatter.
Once complete, submit a pull request to have your translation accepted.
// Example structure of a language file
[
["TOKEN_NAME", "Translated String Here"],
["ANOTHER_TOKEN", "Another translation"]
]