local __yuiAddonName = ...
local __yuiState = _G.YUI_CORE_EMBED_STATE and _G.YUI_CORE_EMBED_STATE[__yuiAddonName]
if __yuiState and not __yuiState.loadCore then
    return
end
local YUI = _G.YUI

YUI.Locale:Register("Core", "zhCN", {
    ["common.on"] = "开",
    ["common.off"] = "关",
    ["common.left_click"] = "左键",
    ["common.right_click"] = "右键",
    ["common.alt_left_click"] = "Alt + 左键",
    ["common.open_settings"] = "打开设置",
    ["common.font"] = "字体",
    ["common.font_size"] = "字体大小",
    ["common.size"] = "尺寸",
    ["common.spacing"] = "间距",
    ["common.margin"] = "边距",
    ["common.horizontal_padding"] = "左右边距",
    ["common.vertical_padding"] = "上下边距",
    ["common.show_icon"] = "显示图标",
    ["common.display_mode"] = "显示模式",
    ["common.none"] = "无",
    ["common.top"] = "上边",
    ["common.bottom"] = "下边",
    ["common.left"] = "左",
    ["common.right"] = "右",
    ["common.center"] = "中",
    ["common.edge"] = "边",
    ["common.align_left"] = "靠左",
    ["common.align_right"] = "靠右",
    ["common.background_texture"] = "背景材质",
    ["common.background_color"] = "背景颜色",
    ["common.use_class_color"] = "使用职业颜色",
    ["common.font_outline"] = "字体描边",
    ["common.font_shadow"] = "字体阴影",
    ["common.confirm"] = "确定",
    ["common.cancel"] = "取消",
    ["common.ready"] = "就绪",
    ["common.total"] = "总计",
    ["common.max"] = "上限",
    ["common.clear_data"] = "清空数据",
    ["common.preview_sound"] = "试听",

    ["settings.copy_hint"] = "按 Ctrl+C 复制",
    ["settings.reload_required"] = "需要重载",
    ["settings.reload_confirm"] = "设置已更改，需要重载界面才能生效。",
    ["settings.confirm_title"] = "确认操作",
    ["settings.version"] = "版本: %s",
    ["settings.copy_bilibili"] = "复制 Bilibili 主页链接",
    ["settings.copy_douyin_id"] = "复制抖音ID",
    ["settings.copy_qq_group"] = "复制 QQ 群号",
    ["settings.back"] = "< 返回",
    ["settings.edit_mode"] = "编辑模式",
    ["settings.generic_settings"] = "设置",
    ["settings.minimap_icon.tooltip.title"] = "小地图按钮",
    ["settings.minimap_icon.tooltip.state_shown"] = "当前状态：显示",
    ["settings.minimap_icon.tooltip.state_hidden"] = "当前状态：隐藏",
    ["settings.minimap_icon.tooltip.left_click"] = "左键显示或隐藏小地图按钮。",
    ["settings.minimap_icon.tooltip.right_click"] = "右键重置按钮位置。",
    ["minimap_icon.tooltip.left_click"] = "左键打开设置。",
    ["minimap_icon.tooltip.drag"] = "拖动可移动按钮。",

    ["db.migration.legacy_v2.start"] = "检测到旧版本 YUI 配置，正在迁移。",
    ["db.migration.legacy_v2.done"] = "旧版本 YUI 配置迁移完成：%d 个配置文件，%d 个设置项。",
    ["db.migration.legacy_v2.partial"] = "部分旧设置可能无法完全复原。",

    ["settings.modules.general"] = "组件管理",
    ["settings.modules.appearance"] = "主题外观",
    ["settings.modules.profiles"] = "配置文件",
    ["settings.modules.about"] = "关于",
    ["settings.modules.addon_list"] = "插件清单",
    ["settings.modules.help"] = "常见问题",
    ["settings.modules.changelog"] = "更新日志",
    ["settings.modules.credits"] = "致谢",
    ["settings.modules.layout"] = "布局编辑",

    ["settings.layout.title"] = "布局编辑",
    ["settings.layout.desc"] = "管理已注册的 YUI 框体，打开编辑模式，并调整位置相关选项。",
    ["settings.layout.frames"] = "已注册框体",
    ["settings.layout.no_frames"] = "当前还没有注册框体。",
    ["settings.layout.position"] = "位置",
    ["layout.option.snap"] = "吸附",
    ["layout.option.grid"] = "网格",
    ["layout.option.grid_density.very_low"] = "超疏",
    ["layout.option.grid_density.low"] = "稀疏",
    ["layout.option.grid_density.medium"] = "标准",
    ["layout.option.grid_density.high"] = "密集",
    ["layout.option.grid_density.very_high"] = "超密",
    ["layout.option.locked"] = "锁定",
    ["layout.action.open"] = "打开编辑模式",
    ["layout.action.close"] = "关闭",
    ["layout.action.done"] = "完成",
    ["layout.action.settings"] = "设置",
    ["layout.action.reset_selected"] = "重置框体",
    ["layout.action.reset_short"] = "重置",
    ["layout.action.reset_all"] = "重置全部",
    ["layout.action.plugin_settings"] = "插件设置",
    ["layout.action.anchor_settings"] = "锚点",
    ["layout.action.pick_frame"] = "拾取",
    ["layout.action.picking_frame"] = "拾取中",
    ["layout.hint.mousewheel_nudge"] = "滚轮微调",
    ["layout.confirm.reset_selected"] = "是否将当前框体重置到默认位置？",
    ["layout.overlay.tooltip"] = "拖动可移动。滚轮微调 Y 轴 1 像素；Shift+滚轮微调 X 轴 1 像素。",
    ["layout.message.combat_blocked"] = "战斗中无法使用布局编辑模式。",
    ["layout.panel.title"] = "YUI 编辑模式",
    ["layout.panel.selected"] = "当前选中",
    ["layout.panel.hint.left_click"] = "左键：打开微调窗口",
    ["layout.panel.hint.right_click"] = "右键：打开设置界面",
    ["layout.panel.hint.shift_right_click"] = "Shift+右键：临时隐藏窗口",
    ["layout.none_selected"] = "无",
    ["layout.anchor_target.screen"] = "屏幕",
    ["layout.anchor_target.player"] = "玩家框架",
    ["layout.anchor_target.target"] = "目标框架",
    ["layout.anchor_target.party"] = "小队框架",
    ["layout.anchor_target.raid"] = "团队框架",
    ["layout.position.anchor_target"] = "锚定对象",
    ["layout.position.frame_name"] = "框体名",
    ["layout.position.anchor_points"] = "锚点",
    ["layout.position.point"] = "框体锚点",
    ["layout.position.relative_point"] = "相对锚点",
    ["layout.position.target_point"] = "目标锚点",
    ["layout.position.offset_x"] = "X 偏移",
    ["layout.position.offset_y"] = "Y 偏移",
    ["layout.position.invalid_anchor_target"] = "请输入已存在的全局框体名。",
    ["layout.position.anchor_cycle"] = "该锚定会造成布局循环。",
    ["layout.position.anchor_pending"] = "锚点框体尚未创建，位置等待恢复",
    ["layout.position.anchor_fallback"] = "原锚点未找到，当前使用临时位置",
    ["layout.position.anchor_simulated"] = "当前使用模拟锚点，目标框架尚未创建",
    ["layout.position.pick_active"] = "把鼠标移到命名框体上，然后左键点击。",
    ["layout.position.pick_ready"] = "当前",
    ["layout.position.select_anchor_point"] = "选择锚点",

    ["settings.general.title"] = "组件管理",
    ["settings.general.desc"] = "统一管理 YUI 组件、产品入口和独立功能。",
    ["settings.general.beta.label"] = "测试版",
    ["settings.general.beta.confirm_title"] = "测试版组件",
    ["settings.general.beta.confirm_message"] = "这是一个测试版组件，可能存在 BUG。如有问题，欢迎在 QQ 群上报错误信息。",
    ["settings.general.beta.confirm_accept"] = "继续开启",
    ["settings.general.feature.whisper_color.label"] = "密语渐变",
    ["settings.general.feature.whisper_color.text"] = "让自己发出的密语带上渐变色，更容易区分对话。",
    ["settings.general.feature.whisper_color.tooltip"] = "对自己发送的密语进行渐变染色",
    ["settings.general.feature.trade_enhancement.label"] = "交易增强",
    ["settings.general.feature.trade_enhancement.text"] = "交易时自动记录并密语支出内容，也可配合 Baganator 开关背包。",
    ["settings.general.feature.trade_enhancement.tooltip"] = "整合交易密语和交易时自动开关背包功能。",
    ["settings.general.feature.trade_enhancement.trade_whisper.label"] = "交易密语",
    ["settings.general.feature.trade_enhancement.trade_whisper.tooltip"] = "当你交易时若有支出，则密语对方交易内容。",
    ["settings.general.feature.trade_enhancement.auto_bag.label"] = "自动背包",
    ["settings.general.feature.trade_enhancement.auto_bag.tooltip"] = "当你交易时自动开启/关闭背包（仅支持 Baganator）。",
    ["settings.general.feature.trade_enhancement.merchant_frame.label"] = "商人界面扩展",
    ["settings.general.feature.trade_enhancement.merchant_frame.tooltip"] = "扩展时光服商人界面，每页显示更多商人物品。",
    ["settings.general.feature.trade_enhancement.merchant_frame.conflict"] = "已加载 %s，商人界面扩展自动失效。",
    ["settings.general.feature.talent_frame_enhancement.label"] = "天赋界面扩展",
    ["settings.general.feature.talent_frame_enhancement.text"] = "放大并美化时光服天赋界面，同时在所选天赋树旁显示其他天赋树。",
    ["settings.general.feature.talent_frame_enhancement.conflict"] = "已加载 %s，天赋界面扩展自动失效。",
    ["settings.general.feature.talent_frame_enhancement.tree_title"] = "%s  %s",
    ["settings.general.feature.talent_frame_enhancement.title"] = "主天赋",
    ["settings.general.feature.talent_frame_enhancement.title_primary"] = "主天赋",
    ["settings.general.feature.talent_frame_enhancement.title_secondary"] = "副天赋",
    ["settings.general.feature.talent_frame_enhancement.title_pet"] = "宠物天赋",
    ["settings.general.feature.talent_frame_enhancement.active_status"] = "这是你当前启用的天赋",
    ["settings.general.feature.talent_frame_enhancement.remaining"] = "剩余天赋点数 %d",
    ["settings.general.feature.talent_frame_enhancement.glyph_major"] = "大雕文",
    ["settings.general.feature.talent_frame_enhancement.glyph_minor"] = "小雕文",
    ["settings.general.feature.talent_frame_enhancement.glyph_empty"] = "空雕文槽",
    ["settings.general.feature.talent_frame_enhancement.simulator"] = "模拟器",
    ["settings.general.feature.talent_frame_enhancement.learn"] = "学习",
    ["settings.general.feature.talent_frame_enhancement.reset"] = "重置",

    ["settings.appearance.title"] = "主题外观",
    ["settings.appearance.desc"] = "选择 YUI 设置界面的基础主题。主题跟随当前配置文件保存，切换后会立即刷新设置界面。",
    ["settings.appearance.unavailable"] = "GUI2 外观系统尚未就绪，请稍后再打开此页面。",
    ["settings.appearance.tab.skin"] = "主题皮肤",
    ["settings.appearance.tab.icons"] = "职业专精图标",
    ["settings.appearance.tab.plugin_skins"] = "插件美化",
    ["settings.appearance.preset_title"] = "主题颜色",
    ["settings.appearance.preset_desc"] = "选择后会立即应用到当前设置界面，并写入当前配置文件。",
    ["settings.appearance.preset.midnight"] = "午夜钴蓝",
    ["settings.appearance.preset.gilded"] = "石墨鎏金",
    ["settings.appearance.preset.astral_violet"] = "星渊紫电",
    ["settings.appearance.preset.coming_soon"] = "敬请期待",
    ["settings.appearance.preview_title"] = "预览",
    ["settings.appearance.preview_panel"] = "面板",
    ["settings.appearance.preview_popup"] = "浮层",
    ["settings.appearance.preview_tooltip"] = "Tooltip 边框",
    ["settings.appearance.preview_button"] = "普通按钮",
    ["settings.appearance.preview_selected"] = "选中按钮",
    ["settings.appearance.preview_accent"] = "强调色",
    ["settings.appearance.preview_border"] = "边框",
    ["settings.appearance.preview_all_specs"] = "预览",
    ["settings.appearance.icons_title"] = "选择图标风格",
    ["settings.appearance.icons_desc"] = "选择 YUI 统一使用的职业/专精图标来源。单体插件默认使用游戏自带图标；整合包可使用这里注册的自定义专精图标。",
    ["settings.appearance.icons_select_label"] = "图标风格",
    ["settings.appearance.scope_title"] = "美化范围",
    ["settings.appearance.scope.ydamage_meter"] = "YUI伤害统计",
    ["settings.appearance.scope.ydamage_meter.tooltip"] = "控制 YUI 伤害统计是否使用当前专精图标风格。",
    ["settings.appearance.scope.light_damage"] = "LightDamage",
    ["settings.appearance.scope.light_damage.tooltip"] = "控制 LightDamage 是否使用当前专精图标风格。",
    ["settings.appearance.scope.details_spec_sync"] = "Details专精同步",
    ["settings.appearance.scope.details_spec_sync.tooltip"] = "控制 YUI 是否向 Details 注册当前可用的自定义专精图标包。",
    ["settings.appearance.scope.ybar"] = "全能双栏",
    ["settings.appearance.scope.ybar.tooltip"] = "控制全能双栏中出现的专精图标是否使用当前图标风格。",
    ["settings.appearance.scope.class_extra_monitor"] = "职业额外监控",
    ["settings.appearance.scope.class_extra_monitor.tooltip"] = "控制职业额外监控设置中出现的专精图标是否使用当前图标风格。",
    ["settings.appearance.scope.settings"] = "设置页面",
    ["settings.appearance.scope.settings.tooltip"] = "控制设置页面中出现的专精图标是否使用当前图标风格。",
    ["settings.appearance.icons_empty"] = "当前版本无法枚举全职业专精图标，进入游戏后可查看当前职业预览。",
    ["settings.appearance.icons_unavailable"] = "职业/专精图标 API 尚未就绪，请稍后再打开此页面。",
    ["settings.appearance.armor.cloth"] = "布甲",
    ["settings.appearance.armor.leather"] = "皮甲",
    ["settings.appearance.armor.mail"] = "锁甲",
    ["settings.appearance.armor.plate"] = "板甲",
    ["settings.appearance.icons.blizzard"] = "暴雪原生",
    ["settings.appearance.icons.yuispec1"] = "YUI 幻彩",
    ["settings.appearance.skins_title"] = "阴影和美化",
    ["settings.appearance.skins_scope_title"] = "美化范围",
    ["settings.appearance.skins_effect_title"] = "美化效果",
    ["settings.appearance.plugin_skins.tab.elvui"] = "ElvUI",
    ["settings.appearance.plugin_skins.tab.eqol"] = "EnhanceQoL",
    ["settings.appearance.plugin_skins.tab.ndui"] = "NDui",
    ["settings.appearance.plugin_skins.enable"] = "启用",
    ["settings.appearance.plugin_skins_unavailable"] = "当前版本没有可用的插件美化选项。",
    ["settings.appearance.skins.elvui"] = "ElvUI",
    ["settings.appearance.skins.elvui.tooltip"] = "为支持的 ElvUI 与全局框架应用 YUI 整合包皮肤。需要重载界面。",
    ["settings.appearance.skins.eqol"] = "EQoL",
    ["settings.appearance.skins.eqol.tooltip"] = "为 EnhanceQoL 单位框架应用 YUI 整合包皮肤。需要重载界面。",
    ["settings.appearance.skins.ndui"] = "NDui",
    ["settings.appearance.skins.ndui.tooltip"] = "启用 YUI 对 NDui 的插件美化。需要重载界面。",
    ["settings.appearance.skins.ndui_text_shadow"] = "单位框架文本添加阴影",
    ["settings.appearance.skins.ndui_text_shadow.tooltip"] = "为 NDui 单位框架文字添加黑色 1,-1 阴影。需要重载界面。",
    ["settings.appearance.skins.eqol_power_border"] = "强制使用 1 像素边框",
    ["settings.appearance.skins.eqol_power_border.tooltip"] = "运行时压制 EnhanceQoL 单位框架和资源条自带边框，并由 YUI 绘制像素完美 1 像素边框。可能需要重载界面或等待 EnhanceQoL 刷新。",
    ["settings.appearance.skins.shadow"] = "柔和阴影",
    ["settings.appearance.skins.shadow.tooltip"] = "为支持的皮肤集成添加柔和外阴影与内阴影。需要重载界面。",
    ["settings.appearance.skins.noise"] = "颗粒背景",
    ["settings.appearance.skins.noise.tooltip"] = "为支持的美化框体添加细微颗粒纹理。需要重载界面。",
    ["settings.appearance.skins.light_mode"] = "幻彩职业色",
    ["settings.appearance.skins.light_mode.tooltip"] = "为支持的 ElvUI、NDui 和 EQoL 单位框架皮肤使用更明亮、带高光层次的职业色材质。需要重载界面。",

    ["settings.profiles.title"] = "配置文件",
    ["settings.profiles.unknown"] = "未知",
    ["settings.profiles.current_profile"] = "当前配置文件：|cff00ff00%s|r",
    ["settings.profiles.management"] = "配置管理",
    ["settings.profiles.select_profile"] = "选择配置:",
    ["settings.profiles.load_profile"] = "加载配置",
    ["settings.profiles.delete_profile"] = "删除配置",
    ["settings.profiles.reset_current"] = "重置当前",
    ["settings.profiles.confirm_load"] = "确定要切换到配置 [%s] 吗？\n界面将自动重载。",
    ["settings.profiles.cannot_delete_last"] = "无法删除最后一个配置文件。请使用【重置当前】功能。",
    ["settings.profiles.confirm_delete"] = "确定要删除配置 [%s] 吗？\n此操作无法撤销。",
    ["settings.profiles.deleted_and_switched"] = "已删除配置 [%s] 并切换至 [%s]。",
    ["settings.profiles.deleted"] = "配置已删除。",
    ["settings.profiles.confirm_reset"] = "确定要重置当前配置到默认值吗？\n此操作无法撤销。",
    ["settings.profiles.reset_done"] = "当前配置已重置。",
    ["settings.profiles.new_profile"] = "新建配置",
    ["settings.profiles.profile_name"] = "配置名称:",
    ["settings.profiles.create_profile"] = "新建配置",
    ["settings.profiles.enter_profile_name"] = "请输入配置名称。",
    ["settings.profiles.profile_exists"] = "错误：配置名称 [%s] 已存在。",
    ["settings.profiles.created_profile"] = "已基于 [%s] 创建新配置: %s",
    ["settings.profiles.export"] = "导出",
    ["settings.profiles.export_current"] = "导出当前配置",
    ["settings.profiles.import"] = "导入",
    ["settings.profiles.profile_string"] = "配置字符串:",
    ["settings.profiles.import_apply"] = "导入并应用",
    ["settings.profiles.enter_import_profile_name"] = "请输入导入后的新配置名称。",
    ["settings.profiles.enter_profile_string"] = "请输入配置字符串。",
    ["settings.profiles.invalid_profile_string"] = "错误：无效的配置字符串（需要产品前缀，例如 !YUI-YBar-v2:，或旧版 !YUI-v2: / !YUI:）。",
    ["settings.profiles.decode_failed"] = "解码失败，字符串格式错误。",
    ["settings.profiles.decompress_failed"] = "解压失败，数据可能已损坏。",
    ["settings.profiles.deserialize_failed"] = "反序列化失败，数据结构无效。",
    ["settings.profiles.confirm_import"] = "成功解析配置。\n确定要创建新配置 [%s] 并应用吗？\n界面将自动重载。",
    ["settings.profiles.confirm_import_legacy"] = "这是旧版本的配置文件，新版本会尽量复原，但不保证完全复原。\n确定要创建新配置 [%s] 并应用吗？\n界面将自动重载。",

    ["settings.about.title"] = "关于 YUI",
    ["settings.about.description"] = "YUI 是一个整合界面插件。\n版本: %s\n作者: 阿言",
    ["settings.about.default_notes"] = "YUI 是一个整合界面插件。",
    ["settings.about.details"] = "%s\n版本: %s\n作者: %s",
    ["settings.about.follow"] = "如果你喜欢这个单体插件，可以关注 YUI 整合包和后续更新。",

    ["settings.changelog.title"] = "更新日志",
    ["settings.changelog.empty"] = "暂无更新日志",
    ["settings.changelog.popup_title"] = "YUI 更新日志",
    ["settings.changelog.popup_subtext"] = "版本: |cff00ffff%s|r |cff00ff00(点击查看)|r",

    ["settings.credits.title"] = "致谢",
    ["settings.credits.partners"] = "合作伙伴",
    ["settings.credits.partner_desc"] = "最重要的人",
    ["settings.credits.seniors"] = "感谢前辈",
    ["settings.credits.seniors_desc"] = "学习过前辈们的作品或受到过指点和帮助，感谢你们为玩家做出的贡献，排名不分先后",
    ["settings.credits.addons"] = "致敬插件",
    ["settings.credits.addons_desc"] = "AI 编码时代，或多或少会参考一些优秀的作品，在此记录与感谢，如果有冒犯，请联系我",
    ["settings.credits.players"] = "全体 YUI 玩家",
    ["settings.credits.players_desc"] = "没有你们的支持，就没有 YUI，不忘初心，坚持制作高质量内容",
    ["settings.credits.players_suffix"] = " (名字太多就不一一列举了)",

    ["settings.addon_list.title"] = "插件清单",
    ["settings.addon_list.desc"] = "这里列出了YUI整合包中包含的主要插件列表。",
    ["settings.addon_list.column.type"] = "类型",
    ["settings.addon_list.column.name"] = "插件名称",
    ["settings.addon_list.column.desc"] = "说明",
    ["settings.addon_list.column.setting"] = "设置指令/位置",
    ["settings.addon_list.no_data"] = "暂无数据",
    ["settings.addon_list.type.core"] = "核心",
    ["settings.addon_list.type.ui"] = "界面",
    ["settings.addon_list.type.cooldown"] = "冷却管理",
    ["settings.addon_list.type.nameplate"] = "姓名板",
    ["settings.addon_list.type.tools"] = "工具",
    ["settings.addon_list.type.combat"] = "战斗",
    ["settings.addon_list.type.config"] = "配置",
    ["settings.addon_list.type.bags"] = "背包",
    ["settings.addon_list.type.cosmetic"] = "美化",
    ["settings.addon_list.type.assist"] = "辅助",
    ["settings.addon_list.type.notice"] = "提示",
    ["settings.addon_list.desc.yui"] = "YUI配置核心插件",
    ["settings.addon_list.desc.elvui_ndui"] = "自定义界面的基础插件, 二选一",
    ["settings.addon_list.desc.toxiui"] = "ElvUI的美化插件",
    ["settings.addon_list.desc.ayijecdm"] = "冷却管理器美化",
    ["settings.addon_list.desc.plater"] = "姓名板美化插件",
    ["settings.addon_list.desc.platynator"] = "姓名板美化插件",
    ["settings.addon_list.desc.exwindtools"] = "强大的工具集合",
    ["settings.addon_list.desc.warpdeplete"] = "大秘境计时器美化",
    ["settings.addon_list.desc.murlokexport"] = "天赋配置一键导入",
    ["settings.addon_list.desc.baganator"] = "最强背包插件",
    ["settings.addon_list.desc.plumber"] = "小功能集合",
    ["settings.addon_list.desc.waypoint"] = "目标光柱",
    ["settings.addon_list.desc.myslot"] = "按键设置与宏的导入导出工具",
    ["settings.addon_list.desc.no_data_wrath"] = "巫妖王之怒版本数据待补充",
    ["settings.addon_list.desc.no_data_mists"] = "熊猫人之谜版本数据待补充",
    ["settings.addon_list.setting.ec_or_ndui"] = "/ec 或 /ndui",
    ["settings.addon_list.setting.esc_options_addons"] = "ESC-选项-插件",

    ["settings.help.title"] = "常见问题",
    ["settings.help.current_version"] = "当前游戏版本: %s",
    ["settings.help.no_info"] = "暂无针对此版本的详细帮助信息。",
})
