From 5ada662b29d2584abf906cb73811e749cf596c9b Mon Sep 17 00:00:00 2001 From: SPGoding Date: Fri, 9 Aug 2019 21:55:22 +0800 Subject: [PATCH] Localization for Simplified Chinese (zh-CN) (#6) * Localization for zh_CN * Rename zh_CN to zh-CN * Remove default language * Remove characters written by accident * Fix translation * Fix 'block_state_property' --- i18n.js | 3 +- locales/zh-CN.json | 285 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 287 insertions(+), 1 deletion(-) create mode 100644 locales/zh-CN.json diff --git a/i18n.js b/i18n.js index 25d049d8..ffc54e44 100644 --- a/i18n.js +++ b/i18n.js @@ -1,5 +1,6 @@ const lngs = [ - ['en', 'English'] + ['en', 'English'], + ['zh-CN', '简体中文'] ] lngs.forEach(v => $('#lngList').append(`${v[1]}`)) diff --git a/locales/zh-CN.json b/locales/zh-CN.json new file mode 100644 index 00000000..ad67b7fd --- /dev/null +++ b/locales/zh-CN.json @@ -0,0 +1,285 @@ +{ + "$condition": { + "alternative": "析取范式", + "inverted": "取反", + "entity_properties": "实体属性", + "block_state_propery": "方块属性", + "match_tool": "工具属性", + "damage_source_properties": "伤害源", + "location_check": "位置", + "weather_check": "天气", + "entity_scores": "实体分数", + "random_chance": "随机概率", + "random_chance_with_looting": "受抢夺附魔影响的随机概率", + "table_bonus": "附魔奖励", + "killed_by_player": "被玩家击杀", + "survives_explosion": "未被爆炸破坏", + "$terms": { + "term": "条件" + } + }, + "$damage": { + "damage_type": "伤害类型", + "projectile": "弹射物", + "explosion": "爆炸", + "fire": "燃烧", + "magic": "魔法", + "lightning": "雷击", + "starvation": "饥饿", + "void": "虚空", + "bypass_armor": "破甲", + "dealt": "被防御前的伤害", + "taken": "实际造成的伤害", + "blocked": "被盾牌阻挡", + "source_enitity": "根本来源实体", + "direct_enitity": "直接来源实体" + }, + "$dimension": { + "overworld": "主世界", + "the_nether": "下界", + "the_end": "末路之地" + }, + "$enchantment": { + "aqua_affinity": "水下速掘", + "bane_of_arthropods": "节肢杀手", + "blast_protection": "爆炸保护", + "channeling": "引雷", + "binding_curse": "绑定诅咒", + "vanishing_curse": "消失诅咒", + "depth_strider": "深海探索者", + "efficiency": "效率", + "feather_falling": "摔落保护", + "fire_aspect": "火焰附加", + "fire_protection": "火焰保护", + "flame": "火矢", + "fortune": "时运", + "frost_walker": "冰霜行者", + "impaling": "穿刺", + "infinity": "无限", + "knockback": "击退", + "looting": "抢夺", + "loyalty": "忠诚", + "luck_of_the_sea": "海之眷顾", + "lure": "饵钓", + "mending": "经验修补", + "multishot": "多重射击", + "piercing": "穿透", + "power": "力量", + "projectile_protection": "弹射物保护", + "protection": "保护", + "punch": "冲击", + "quick_charge": "快速装填", + "respiration": "水下呼吸", + "riptide": "激流", + "sharpness": "锋利", + "silk_touch": "精准采集", + "smite": "亡灵杀手", + "sweeping": "横扫之刃", + "thorns": "荆棘", + "unbreaking": "耐久" + }, + "$entry": { + "name": "名称", + "type": "类型", + "$type": { + "empty": "空", + "item": "物品", + "tag": "物品标签", + "loot_table": "战利品表", + "alternatives": "析取范式", + "sequence": "序列", + "group": "组", + "dynamic": "动态" + }, + "weight": "权重", + "quality": "每级幸运对权重的影响" + }, + "$function": { + "set_count": "设置物品数量", + "set_damage": "设置损伤值", + "set_name": "设置物品名", + "set_lore": "设置下标", + "set_nbt": "设置 NBT", + "set_attributes": "设置属性", + "set_contents": "设置内容物", + "enchant_randomly": "随机附魔", + "enchant_with_levels": "给予等价于经验等级的随机附魔", + "looting_enchant": "根据抢夺附魔调整物品数量", + "limit_count": "限制堆叠数量", + "furnace_smelt": "熔炉熔炼", + "explosion_decay": "爆炸损耗", + "fill_player_head": "填充玩家头颅", + "copy_name": "复制方块实体显示名", + "copy_nbt": "复制 NBT", + "apply_bonus": "应用奖励公式", + "$damage": { + "damage": "损伤值" + }, + "$ench_rand": { + "ench": "可选附魔" + }, + "$limit": { + "limit": "限制" + }, + "$name": { + "name": "名称" + }, + "$lore_replace": { + "replace": "覆盖" + }, + "$entity": { + "entity": "实体" + }, + "$operations": { + "add_op": "添加操作" + }, + "$formula": { + "formula": "公式", + "uniform_bonus_count": "带奖励数量的均匀分布", + "binomial_with_bonus_count": "带奖励数量的二项分布", + "ore_drops": "矿物掉落" + }, + "$bonus_multiplier": { + "multiplier": "乘数" + }, + "$bonus_extra": { + "extra": "额外值" + }, + "$bonus_probability": { + "probability": "概率" + } + }, + "$modifier": { + "attribute": "属性", + "generic_maxHealth": "最大生命值", + "generic_followRange": "追踪范围", + "generic_knockbackResistance": "抗击退效果", + "generic_movementSpeed": "移动速度", + "generic_attackDamage": "普通攻击伤害", + "generic_armor": "盔甲防御点数", + "generic_armorThoughness": "盔甲韧性", + "generic_attackSpeed": "攻击速度", + "generic_luck": "幸运", + "horse_jumpStrength": "弹跳力", + "generic_attackKnockback": "击退距离", + "generic_flyingSpeed": "飞行速度", + "zombie_spawnReinforcements": "连带生成新僵尸的可能性", + "name": "名称", + "amount": "数额", + "operation": "运算模式", + "$operation": { + "addition": "加减数额", + "multiply_base": "乘以数额", + "multiply_total": "乘以(数额 + 1)" + }, + "slots": "栏位" + }, + "$operation": { + "source": "复制源", + "target": "复制目标", + "operation": "操作类型", + "$operation": { + "replace": "替换", + "append": "追加", + "merge": "合并" + } + }, + "$pool": { + "rolls": "抽取次数", + "bonus_rolls": "每级幸运增加的抽取次数" + }, + "$range": { + "exact": "精确值", + "range": "范围", + "$range": { + "min": "最小值", + "max": "最大值" + }, + "binomial": "二项分布", + "$binomial": { + "n": "n", + "p": "p" + } + }, + "$slot": { + "mainhand": "主手", + "offhand": "副手", + "head": "头", + "chest": "胸", + "legs": "腿", + "feet": "脚" + }, + "$source": { + "block_entity": "方块实体", + "this": "自身", + "killer": "击杀者", + "killer_player": "击杀者玩家" + }, + "$table": { + "type": "战利品表类型", + "$type": { + "empty": "空", + "entity": "实体", + "block": "方块", + "chest": "箱子", + "fishing": "钓鱼", + "generic": "通用" + } + }, + "2_spaces": "2 空格缩进", + "4_spaces": "4 空格缩进", + "add": "添加", + "author": "作者 @Misode", + "biome": "生物群系", + "block": "方块", + "block_state": "方块状态", + "chance": "机率", + "chance_plural": "机率", + "child": "子项目", + "condition": "条件", + "copy": "复制", + "count": "数量", + "description": "适用于 Minecraft 1.14 的战利品表生成器", + "dimension": "维度", + "durability": "耐久度", + "enchantment": "附魔", + "entity": "实体", + "entry": "项目", + "false": "否", + "feature": "结构", + "function": "函数", + "hide_source": "隐藏源代码", + "inverted": "取反", + "item": "物品", + "level_plural": "等级", + "location": "位置", + "looting_multiplier": "每级抢夺附魔增加的数", + "luck_based": "受幸运等级影响", + "modifier": "属性修饰器", + "more": "更多选项", + "name": "名称", + "nbt": "NBT", + "objective": "计分项", + "operation": "操作", + "pool": "随机池", + "position": "位置", + "potion": "药水", + "raining": "下雨", + "remove": "移除", + "score": "分数", + "share": "分享", + "show_source": "显示源代码", + "source": "源", + "table": "战利品表", + "tabs": "Tab 缩进", + "tag": "标签", + "thundering": "雷雨", + "title": "战利品表生成器", + "treasure": "宝藏型附魔", + "true": "是", + "type": "类型", + "unset": "未指定", + "x": "X 坐标", + "y": "Y 坐标", + "z": "Z 坐标" +}