A simple web page for querying Minecraft standard translations, using Flask as the backend framework and jQuery for the frontend.
You can view a demo of the webpage at the following URLs:
- mcst.teahouse.team
- skyeyefast.pythonanywhere.com (Backup site, updates may be slower)
Enter the source string (i.e. the original English text) into the input box on the main page, click the "Query" button, select the desired string key from the resulting list, and click "Query" again to retrieve the corresponding translation.
By default, only Chinese variants are displayed. You can enable other languages (Japanese, Korean, Vietnamese) by toggling the "Enable additional languages" option.
The webpage styling is inspired by SkyEye-FAST/minecraft_translation_ppt. Refer to the #Colors section.
A translation quiz game can be found on the /quiz
subpage of the website.
It features 10 randomly selected translations from language files, allowing players to test their familiarity with standard translations.
An autogenerated translation table can be found on the /table
subpage of the website, including keys, original texts, and translations in 7 supported languages.
Use the browser's built-in search function (shortcut key: Ctrl + F
or ⌘ Command + F
) for quick lookups.
This page is useful for quick searches, but not suitable for presenting results to others. Consider using screenshots from the main page to showcase translations.
See Flask documentation for details.
Install dependencies using the following command:
pip install -r requirements.txt
Set the SECRET_KEY
environment variable either in .env
or system settings. Generate it using:
python -c 'import secrets; print(secrets.token_hex())'
Referenced from SkyEye-FAST/mc_lang.
For other versions of Java Edition language files in your own instance, use SkyEye-FAST/minecraft_translation.
Place en_us.json
, zh_cn.json
, zh_hk.json
, zh_tw.json
, lzh.json
, ja_jp.json
, ko_kr.json
, and vi_vn.json
in the language files folder (default: lang
folder alongside the script, configurable in settings).
supplements.json
contains updates from Crowdin for missing in-game language files. This feature is disabled by default.
Date and timezone on the webpage are based on user's IP, sourced from GeoIP2 GeoLite2 database.
Localization of date and timezone is handled by babel
and flask-babel
.
The main page background color is #f9f2e0
, and tables with different colored strings for different categories are used.
Below are the colors listed, first being the table border color; the table background color is the border color with 20% opacity, annotated with the equivalent color after overlaying the page background color in parentheses.
- Advancements:
${\color{#a02b93}\blacksquare}$ #a02b93
(${\color{#e7cad1}\blacksquare}$ #e7cad1
)
- Biomes:
${\color{#4ab5c4}\blacksquare}$ #4ab5c4
(${\color{#d6e6da}\blacksquare}$ #d6e6da
)
- Blocks:
${\color{#5b9bd5}\blacksquare}$ #5b9bd5
(${\color{#d9e1de}\blacksquare}$ #d9e1de
)
- Effects:
${\color{#ffc000}\blacksquare}$ #ffc000
(${\color{#fae8b3}\blacksquare}$ #fae8b3
)
- Enchantments:
${\color{#44546a}\blacksquare}$ #44546a
(${\color{#d5d2c8}\blacksquare}$ #d5d2c8
)
- Entities:
${\color{#ed7d31}\blacksquare}$ #ed7d31
(${\color{#f7dbbd}\blacksquare}$ #f7dbbd
)
- Items:
${\color{#70ad47}\blacksquare}$ #70ad47
(${\color{#dee4c1}\blacksquare}$ #dee4c1
)
Please feel free to raise issues for any problems encountered or feature suggestions.
Pull requests are welcome.
Original files for Favicon and apple-touch-icon.png are from Minecraft Wiki, licensed under CC BY-NC-SA 3.0.
GeoLite2-City.mmdb
is from P3TERX/GeoLite.mmdb, copyright MaxMind, Inc.