Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
SkyEye-FAST committed Feb 9, 2025
1 parent 2469e17 commit 2fbf5b3
Show file tree
Hide file tree
Showing 14 changed files with 2,542 additions and 2,315 deletions.
42 changes: 0 additions & 42 deletions .github/workflows/extract_font.yml

This file was deleted.

10 changes: 0 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,6 @@ python -c 'import secrets; print(secrets.token_hex())'

[`supplements.json`](lang/supplements.json)中存有游戏内语言文件缺失,而Crowdin上已更新的内容。目前项目默认配置为关闭读取此项。

### 字体

本项目使用思源宋体和[一点明体](https://github.com/ichitenfont/I.Ming)的自动构建子集。

本仓库会在每周四🕐01:00(UTC+8,即UTC每周三🕔17:00)自动检查一点明体的子集文件是否需要根据文言的内容而更新。

使用脚本为[`extract_font.py`](extract_font.py),需要库[`fonttools`](https://github.com/fonttools/fonttools)

### 日期与时区

网页上显示的日期和时区根据用户的IP决定,相关数据从GeoIP2 GeoLite2数据库获取。
Expand Down Expand Up @@ -136,6 +128,4 @@ python -c 'import secrets; print(secrets.token_hex())'

[Favicon](static/favicon.ico)[apple-touch-icon.png](static/apple-touch-icon.png)的原始文件来自[Minecraft Wiki](https://minecraft.wiki/w/File:Favicon.ico),以CC BY-NC-SA 3.0协议授权。

文言使用[一点明体](https://github.com/ichitenfont/I.Ming),以[IPA Open Font License v1.0](https://github.com/ichitenfont/I.Ming/blob/master/LICENSE.md)授权。

[`GeoLite2-City.mmdb`](GeoLite2-City.mmdb)来自[P3TERX/GeoLite.mmdb](https://github.com/P3TERX/GeoLite.mmdb)。版权归MaxMind, Inc.所有。
10 changes: 0 additions & 10 deletions README_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,6 @@ Place `en_us.json`, `zh_cn.json`, `zh_hk.json`, `zh_tw.json`, `lzh.json`, `ja_jp

[`supplements.json`](lang/supplements.json) contains updates from Crowdin for missing in-game language files. This feature is disabled by default.

### Fonts

This project uses Source Han Serif and an automatically constructed subset of [I.Ming](https://github.com/ichitenfont/I.Ming).

The repository automatically checks for updates to I.Ming subsets every Thursday 🕐 01:00 (UTC+8, UTC Wednesday 🕔 17:00) based on Classical Chinese content.

This process uses the script [`extract_font.py`](extract_font.py) and requires [`fonttools`](https://github.com/fonttools/fonttools).

### Date and Timezone

Date and timezone on the webpage are based on user's IP, sourced from GeoIP2 GeoLite2 database.
Expand Down Expand Up @@ -136,6 +128,4 @@ Pull requests are welcome.

Original files for [Favicon](static/favicon.ico) and [apple-touch-icon.png](static/apple-touch-icon.png) are from [Minecraft Wiki](https://minecraft.wiki/w/File:Favicon.ico), licensed under CC BY-NC-SA 3.0.

Classical Chinese font [I.Ming](https://github.com/ichitenfont/I.Ming) is licensed under [IPA Open Font License v1.0](https://github.com/ichitenfont/I.Ming/blob/master/LICENSE.md).

[`GeoLite2-City.mmdb`](GeoLite2-City.mmdb) is from [P3TERX/GeoLite.mmdb](https://github.com/P3TERX/GeoLite.mmdb), copyright MaxMind, Inc.
359 changes: 239 additions & 120 deletions data/archive/zh_cn_121.json → data/archive/zh_cn_1214.json

Large diffs are not rendered by default.

94 changes: 84 additions & 10 deletions data/diff.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"block.minecraft.nether_brick_wall": "下界砖墙",
"block.minecraft.oak_sign": "橡木告示牌",
"block.minecraft.oak_wall_sign": "墙上的橡木告示牌",
"block.minecraft.ominous_banner": "灾厄旗帜",
"block.minecraft.ominous_banner": "不祥旗帜",
"block.minecraft.polished_andesite_slab": "磨制安山岩台阶",
"block.minecraft.polished_andesite_stairs": "磨制安山岩楼梯",
"block.minecraft.polished_diorite_slab": "磨制闪长岩台阶",
Expand Down Expand Up @@ -248,7 +248,6 @@
"entity.minecraft.zombified_piglin": "僵尸猪灵",
"item.minecraft.hoglin_spawn_egg": "疣猪兽刷怪蛋",
"item.minecraft.lodestone_compass": "磁石指针",
"item.minecraft.music_disc_pigstep": "音乐唱片",
"item.minecraft.netherite_axe": "下界合金斧",
"item.minecraft.netherite_boots": "下界合金靴子",
"item.minecraft.netherite_chestplate": "下界合金胸甲",
Expand Down Expand Up @@ -460,8 +459,7 @@
"biome.minecraft.windswept_gravelly_hills": "风袭沙砾丘陵",
"biome.minecraft.windswept_hills": "风袭丘陵",
"biome.minecraft.windswept_savanna": "风袭热带草原",
"biome.minecraft.wooded_badlands": "疏林恶地",
"item.minecraft.music_disc_otherside": "音乐唱片"
"biome.minecraft.wooded_badlands": "疏林恶地"
},
"1194": {
"advancements.adventure.avoid_vibration.title": "潜行100级",
Expand Down Expand Up @@ -606,7 +604,6 @@
"item.minecraft.jungle_chest_boat": "丛林木运输船",
"item.minecraft.mangrove_boat": "红树木船",
"item.minecraft.mangrove_chest_boat": "红树木运输船",
"item.minecraft.music_disc_5": "音乐唱片",
"item.minecraft.oak_chest_boat": "橡木运输船",
"item.minecraft.recovery_compass": "追溯指针",
"item.minecraft.smithing_template": "锻造模板",
Expand Down Expand Up @@ -773,7 +770,6 @@
"item.minecraft.mace": "重锤",
"item.minecraft.miner_pottery_sherd": "采矿纹样陶片",
"item.minecraft.mourner_pottery_sherd": "悲恸纹样陶片",
"item.minecraft.music_disc_relic": "音乐唱片",
"item.minecraft.netherite_upgrade_smithing_template": "锻造模板",
"item.minecraft.ominous_bottle": "不祥之瓶",
"item.minecraft.ominous_trial_key": "不祥试炼钥匙",
Expand Down Expand Up @@ -822,9 +818,87 @@
"trim_pattern.minecraft.silence": "幽静盔甲纹饰",
"trim_pattern.minecraft.wayfinder": "向导盔甲纹饰"
},
"121": {
"item.minecraft.music_disc_creator": "音乐唱片",
"item.minecraft.music_disc_creator_music_box": "音乐唱片",
"item.minecraft.music_disc_precipice": "音乐唱片"
"1214": {
"biome.minecraft.pale_garden": "苍白之园",
"block.minecraft.chiseled_resin_bricks": "雕纹树脂砖块",
"block.minecraft.closed_eyeblossom": "闭合的眼眸花",
"block.minecraft.creaking_heart": "嘎枝之心",
"block.minecraft.open_eyeblossom": "张开的眼眸花",
"block.minecraft.pale_hanging_moss": "苍白垂须",
"block.minecraft.pale_moss_block": "苍白苔藓块",
"block.minecraft.pale_moss_carpet": "苍白覆地苔藓",
"block.minecraft.pale_oak_button": "苍白橡木按钮",
"block.minecraft.pale_oak_door": "苍白橡木门",
"block.minecraft.pale_oak_fence": "苍白橡木栅栏",
"block.minecraft.pale_oak_fence_gate": "苍白橡木栅栏门",
"block.minecraft.pale_oak_hanging_sign": "悬挂式苍白橡木告示牌",
"block.minecraft.pale_oak_leaves": "苍白橡树树叶",
"block.minecraft.pale_oak_log": "苍白橡木原木",
"block.minecraft.pale_oak_planks": "苍白橡木木板",
"block.minecraft.pale_oak_pressure_plate": "苍白橡木压力板",
"block.minecraft.pale_oak_sapling": "苍白橡树树苗",
"block.minecraft.pale_oak_sign": "苍白橡木告示牌",
"block.minecraft.pale_oak_slab": "苍白橡木台阶",
"block.minecraft.pale_oak_stairs": "苍白橡木楼梯",
"block.minecraft.pale_oak_trapdoor": "苍白橡木活板门",
"block.minecraft.pale_oak_wall_hanging_sign": "墙上的悬挂式苍白橡木告示牌",
"block.minecraft.pale_oak_wall_sign": "墙上的苍白橡木告示牌",
"block.minecraft.pale_oak_wood": "苍白橡木",
"block.minecraft.potted_closed_eyeblossom": "闭合的眼眸花盆栽",
"block.minecraft.potted_open_eyeblossom": "张开的眼眸花盆栽",
"block.minecraft.potted_pale_oak_sapling": "苍白橡树树苗盆栽",
"block.minecraft.resin_block": "树脂块",
"block.minecraft.resin_brick_slab": "树脂砖台阶",
"block.minecraft.resin_brick_stairs": "树脂砖楼梯",
"block.minecraft.resin_brick_wall": "树脂砖墙",
"block.minecraft.resin_bricks": "树脂砖块",
"block.minecraft.resin_clump": "树脂团",
"block.minecraft.stripped_pale_oak_log": "去皮苍白橡木原木",
"block.minecraft.stripped_pale_oak_wood": "去皮苍白橡木",
"entity.minecraft.acacia_boat": "金合欢木船",
"entity.minecraft.acacia_chest_boat": "金合欢木运输船",
"entity.minecraft.bamboo_chest_raft": "运输竹筏",
"entity.minecraft.bamboo_raft": "竹筏",
"entity.minecraft.birch_boat": "白桦木船",
"entity.minecraft.birch_chest_boat": "白桦木运输船",
"entity.minecraft.cherry_boat": "樱花木船",
"entity.minecraft.cherry_chest_boat": "樱花木运输船",
"entity.minecraft.creaking": "嘎枝",
"entity.minecraft.creaking_transient": "嘎枝",
"entity.minecraft.dark_oak_boat": "深色橡木船",
"entity.minecraft.dark_oak_chest_boat": "深色橡木运输船",
"entity.minecraft.jungle_boat": "丛林木船",
"entity.minecraft.jungle_chest_boat": "丛林木运输船",
"entity.minecraft.mangrove_boat": "红树木船",
"entity.minecraft.mangrove_chest_boat": "红树木运输船",
"entity.minecraft.oak_boat": "橡木船",
"entity.minecraft.oak_chest_boat": "橡木运输船",
"entity.minecraft.pale_oak_boat": "苍白橡木船",
"entity.minecraft.pale_oak_chest_boat": "苍白橡木运输船",
"entity.minecraft.spruce_boat": "云杉木船",
"entity.minecraft.spruce_chest_boat": "云杉木运输船",
"item.minecraft.black_bundle": "黑色收纳袋",
"item.minecraft.blue_bundle": "蓝色收纳袋",
"item.minecraft.bordure_indented_banner_pattern": "波纹边旗帜图案",
"item.minecraft.brown_bundle": "棕色收纳袋",
"item.minecraft.creaking_spawn_egg": "嘎枝刷怪蛋",
"item.minecraft.cyan_bundle": "青色收纳袋",
"item.minecraft.field_masoned_banner_pattern": "砖纹旗帜图案",
"item.minecraft.gray_bundle": "灰色收纳袋",
"item.minecraft.green_bundle": "绿色收纳袋",
"item.minecraft.light_blue_bundle": "淡蓝色收纳袋",
"item.minecraft.light_gray_bundle": "淡灰色收纳袋",
"item.minecraft.lime_bundle": "黄绿色收纳袋",
"item.minecraft.magenta_bundle": "品红色收纳袋",
"item.minecraft.orange_bundle": "橙色收纳袋",
"item.minecraft.pale_oak_boat": "苍白橡木船",
"item.minecraft.pale_oak_chest_boat": "苍白橡木运输船",
"item.minecraft.pink_bundle": "粉红色收纳袋",
"item.minecraft.purple_bundle": "紫色收纳袋",
"item.minecraft.red_bundle": "红色收纳袋",
"item.minecraft.resin_brick": "树脂砖",
"item.minecraft.resin_clump": "树脂团",
"item.minecraft.white_bundle": "白色收纳袋",
"item.minecraft.yellow_bundle": "黄色收纳袋"
}
}
9 changes: 8 additions & 1 deletion data/long.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,14 @@
"block.minecraft.oxidized_cut_copper_stairs": "氧化的切制铜楼梯",
"block.minecraft.pink_concrete_powder": "粉红色混凝土粉末",
"block.minecraft.pink_stained_glass_pane": "粉红色染色玻璃板",
"block.minecraft.potted_closed_eyeblossom": "闭合的眼眸花盆栽",
"block.minecraft.potted_dark_oak_sapling": "深色橡树树苗盆栽",
"block.minecraft.potted_open_eyeblossom": "张开的眼眸花盆栽",
"block.minecraft.potted_pale_oak_sapling": "苍白橡树树苗盆栽",
"block.minecraft.potted_pink_tulip": "粉红色郁金香盆栽",
"block.minecraft.powder_snow_cauldron": "装有细雪的炼药锅",
"block.minecraft.stripped_dark_oak_log": "去皮深色橡木原木",
"block.minecraft.stripped_pale_oak_log": "去皮苍白橡木原木",
"block.minecraft.waxed_cut_copper_slab": "涂蜡的切制铜台阶",
"block.minecraft.waxed_cut_copper_stairs": "涂蜡的切制铜楼梯",
"block.minecraft.waxed_exposed_copper_grate": "涂蜡的斑驳铜格栅",
Expand Down Expand Up @@ -104,6 +108,8 @@
"block.minecraft.light_gray_candle_cake": "插上淡灰色蜡烛的蛋糕",
"block.minecraft.lime_candle_cake": "插上黄绿色蜡烛的蛋糕",
"block.minecraft.magenta_candle_cake": "插上品红色蜡烛的蛋糕",
"block.minecraft.pale_oak_hanging_sign": "悬挂式苍白橡木告示牌",
"block.minecraft.pale_oak_wall_sign": "墙上的苍白橡木告示牌",
"block.minecraft.pink_candle_cake": "插上粉红色蜡烛的蛋糕",
"block.minecraft.waxed_exposed_cut_copper_slab": "涂蜡的斑驳切制铜台阶",
"block.minecraft.waxed_exposed_cut_copper_stairs": "涂蜡的斑驳切制铜楼梯",
Expand All @@ -123,5 +129,6 @@
"block.minecraft.warped_wall_hanging_sign": "墙上的悬挂式诡异木告示牌",
"advancements.adventure.minecraft_trials_edition.title": "Minecraft:试炼版",
"block.minecraft.acacia_wall_hanging_sign": "墙上的悬挂式金合欢木告示牌",
"block.minecraft.dark_oak_wall_hanging_sign": "墙上的悬挂式深色橡木告示牌"
"block.minecraft.dark_oak_wall_hanging_sign": "墙上的悬挂式深色橡木告示牌",
"block.minecraft.pale_oak_wall_hanging_sign": "墙上的悬挂式苍白橡木告示牌"
}
11 changes: 11 additions & 0 deletions data/short.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@
"block.minecraft.ladder": "梯子",
"block.minecraft.lantern": "灯笼",
"block.minecraft.lava": "熔岩",
"block.minecraft.leaf_litter": "枯叶",
"block.minecraft.lectern": "讲台",
"block.minecraft.lever": "拉杆",
"block.minecraft.lilac": "丁香",
Expand Down Expand Up @@ -185,12 +186,15 @@
"enchantment.minecraft.wind_burst": "风爆",
"entity.minecraft.allay": "悦灵",
"entity.minecraft.armadillo": "犰狳",
"entity.minecraft.bamboo_raft": "竹筏",
"entity.minecraft.bat": "蝙蝠",
"entity.minecraft.bee": "蜜蜂",
"entity.minecraft.bogged": "沼骸",
"entity.minecraft.breeze_wind_charge": "风弹",
"entity.minecraft.camel": "骆驼",
"entity.minecraft.cod": "鳕鱼",
"entity.minecraft.creaking": "嘎枝",
"entity.minecraft.creaking_transient": "嘎枝",
"entity.minecraft.dolphin": "海豚",
"entity.minecraft.drowned": "溺尸",
"entity.minecraft.fireball": "火球",
Expand Down Expand Up @@ -334,6 +338,7 @@
"block.minecraft.bricks": "红砖块",
"block.minecraft.brown_bed": "棕色床",
"block.minecraft.bubble_column": "气泡柱",
"block.minecraft.bush": "灌木丛",
"block.minecraft.cactus": "仙人掌",
"block.minecraft.calcite": "方解石",
"block.minecraft.carrots": "胡萝卜",
Expand Down Expand Up @@ -424,6 +429,8 @@
"block.minecraft.redstone_block": "红石块",
"block.minecraft.redstone_lamp": "红石灯",
"block.minecraft.redstone_wire": "红石线",
"block.minecraft.resin_block": "树脂块",
"block.minecraft.resin_clump": "树脂团",
"block.minecraft.respawn_anchor": "重生锚",
"block.minecraft.rose_bush": "玫瑰丛",
"block.minecraft.sandstone_wall": "砂岩墙",
Expand Down Expand Up @@ -460,6 +467,7 @@
"block.minecraft.weeping_vines": "垂泪藤",
"block.minecraft.wet_sponge": "湿海绵",
"block.minecraft.white_bed": "白色床",
"block.minecraft.wildflowers": "野花簇",
"block.minecraft.yellow_bed": "黄色床",
"entity.minecraft.armor_stand": "盔甲架",
"entity.minecraft.axolotl": "美西螈",
Expand All @@ -480,6 +488,7 @@
"entity.minecraft.leash_knot": "拴绳结",
"entity.minecraft.lightning_bolt": "闪电束",
"entity.minecraft.magma_cube": "岩浆怪",
"entity.minecraft.oak_boat": "橡木船",
"entity.minecraft.pillager": "掠夺者",
"entity.minecraft.polar_bear": "北极熊",
"entity.minecraft.ravager": "劫掠兽",
Expand Down Expand Up @@ -573,6 +582,8 @@
"item.minecraft.rabbit_hide": "兔子皮",
"item.minecraft.rabbit_stew": "兔肉煲",
"item.minecraft.redstone": "红石粉",
"item.minecraft.resin_brick": "树脂砖",
"item.minecraft.resin_clump": "树脂团",
"item.minecraft.salmon": "生鲑鱼",
"item.minecraft.salmon_bucket": "鲑鱼桶",
"item.minecraft.shulker_shell": "潜影壳",
Expand Down
11 changes: 10 additions & 1 deletion data/tygf.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
"block.minecraft.bubble_coral_wall_fan": "墙上的气泡珊瑚扇",
"block.minecraft.chipped_anvil": "开裂的铁砧",
"block.minecraft.clay": "黏土",
"block.minecraft.closed_eyeblossom": "闭合的眼眸花",
"block.minecraft.creaking_heart": "嘎枝之心",
"block.minecraft.crimson_button": "绯红木按钮",
"block.minecraft.crimson_door": "绯红木门",
"block.minecraft.crimson_fence": "绯红木栅栏",
Expand Down Expand Up @@ -84,13 +86,17 @@
"block.minecraft.nether_wart_block": "下界疣块",
"block.minecraft.obsidian": "黑曜石",
"block.minecraft.ochre_froglight": "赭黄蛙明灯",
"block.minecraft.ominous_banner": "灾厄旗帜",
"block.minecraft.open_eyeblossom": "张开的眼眸花",
"block.minecraft.orange_glazed_terracotta": "橙色带釉陶瓦",
"block.minecraft.pale_moss_block": "苍白苔藓块",
"block.minecraft.pale_moss_carpet": "苍白覆地苔藓",
"block.minecraft.pink_glazed_terracotta": "粉红色带釉陶瓦",
"block.minecraft.poppy": "虞美人",
"block.minecraft.potted_closed_eyeblossom": "闭合的眼眸花盆栽",
"block.minecraft.potted_crimson_fungus": "绯红菌盆栽",
"block.minecraft.potted_crimson_roots": "绯红菌索盆栽",
"block.minecraft.potted_fern": "蕨盆栽",
"block.minecraft.potted_open_eyeblossom": "张开的眼眸花盆栽",
"block.minecraft.potted_poppy": "虞美人盆栽",
"block.minecraft.potted_wither_rose": "凋灵玫瑰盆栽",
"block.minecraft.purple_glazed_terracotta": "紫色带釉陶瓦",
Expand Down Expand Up @@ -124,6 +130,8 @@
"entity.minecraft.axolotl": "美西螈",
"entity.minecraft.bogged": "沼骸",
"entity.minecraft.cod": "鳕鱼",
"entity.minecraft.creaking": "嘎枝",
"entity.minecraft.creaking_transient": "嘎枝",
"entity.minecraft.endermite": "末影螨",
"entity.minecraft.glow_squid": "发光鱿鱼",
"entity.minecraft.hoglin": "疣猪兽",
Expand Down Expand Up @@ -153,6 +161,7 @@
"item.minecraft.cooked_cod": "熟鳕鱼",
"item.minecraft.cooked_salmon": "熟鲑鱼",
"item.minecraft.copper_ingot": "铜锭",
"item.minecraft.creaking_spawn_egg": "嘎枝刷怪蛋",
"item.minecraft.crossbow": "",
"item.minecraft.diamond_horse_armor": "钻石马铠",
"item.minecraft.elytra": "鞘翅",
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ Babel>=2.16.0
Flask>=3.0.3
flask_babel>=4.0.0
flask_wtf>=1.2.1
fonttools>=4.53.1
geoip2>=4.8.0
python-dotenv>=1.0.1
Requests>=2.32.3
Expand Down
Loading

0 comments on commit 2fbf5b3

Please sign in to comment.