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", "enUS", {
    ["common.on"] = "On",
    ["common.off"] = "Off",
    ["common.left_click"] = "Left Click",
    ["common.right_click"] = "Right Click",
    ["common.alt_left_click"] = "Alt + Left Click",
    ["common.open_settings"] = "Open settings",
    ["common.font"] = "Font",
    ["common.font_size"] = "Font Size",
    ["common.size"] = "Size",
    ["common.spacing"] = "Spacing",
    ["common.margin"] = "Margin",
    ["common.horizontal_padding"] = "Horizontal Padding",
    ["common.vertical_padding"] = "Vertical Padding",
    ["common.show_icon"] = "Show Icon",
    ["common.display_mode"] = "Display Mode",
    ["common.none"] = "None",
    ["common.top"] = "Top",
    ["common.bottom"] = "Bottom",
    ["common.left"] = "Left",
    ["common.right"] = "Right",
    ["common.center"] = "Center",
    ["common.edge"] = "Edge",
    ["common.align_left"] = "Left",
    ["common.align_right"] = "Right",
    ["common.background_texture"] = "Background Texture",
    ["common.background_color"] = "Background Color",
    ["common.use_class_color"] = "Use Class Color",
    ["common.font_outline"] = "Font Outline",
    ["common.font_shadow"] = "Font Shadow",
    ["common.confirm"] = "Confirm",
    ["common.cancel"] = "Cancel",
    ["common.ready"] = "Ready",
    ["common.total"] = "Total",
    ["common.max"] = "Cap",
    ["common.clear_data"] = "Clear Data",
    ["common.preview_sound"] = "Preview sound",

    ["settings.copy_hint"] = "Press Ctrl+C to copy",
    ["settings.reload_required"] = "Reload required",
    ["settings.reload_confirm"] = "Settings changed. Reload the UI to apply them.",
    ["settings.confirm_title"] = "Confirm",
    ["settings.version"] = "Version: %s",
    ["settings.copy_bilibili"] = "Copy Bilibili profile link",
    ["settings.copy_douyin_id"] = "Copy Douyin ID",
    ["settings.copy_qq_group"] = "Copy QQ group number",
    ["settings.back"] = "< Back",
    ["settings.edit_mode"] = "Edit Mode",
    ["settings.generic_settings"] = "Settings",
    ["settings.minimap_icon.tooltip.title"] = "Minimap button",
    ["settings.minimap_icon.tooltip.state_shown"] = "Current state: shown",
    ["settings.minimap_icon.tooltip.state_hidden"] = "Current state: hidden",
    ["settings.minimap_icon.tooltip.left_click"] = "Left-click to show or hide the minimap button.",
    ["settings.minimap_icon.tooltip.right_click"] = "Right-click to reset its position.",
    ["minimap_icon.tooltip.left_click"] = "Left-click to open settings.",
    ["minimap_icon.tooltip.drag"] = "Drag to move this button.",

    ["db.migration.legacy_v2.start"] = "Detected legacy YUI settings. Migrating now.",
    ["db.migration.legacy_v2.done"] = "Legacy YUI settings migration complete: %d profiles, %d settings restored.",
    ["db.migration.legacy_v2.partial"] = "Some legacy settings may not be fully restored.",

    ["settings.modules.general"] = "Components",
    ["settings.modules.appearance"] = "Theme",
    ["settings.modules.profiles"] = "Profiles",
    ["settings.modules.about"] = "About",
    ["settings.modules.addon_list"] = "Addons",
    ["settings.modules.help"] = "FAQ",
    ["settings.modules.changelog"] = "Changelog",
    ["settings.modules.credits"] = "Credits",
    ["settings.modules.layout"] = "Layout",

    ["settings.layout.title"] = "Layout",
    ["settings.layout.desc"] = "Manage registered YUI frames, open edit mode, and adjust placement options.",
    ["settings.layout.frames"] = "Registered Frames",
    ["settings.layout.no_frames"] = "No frames are registered yet.",
    ["settings.layout.position"] = "Position",
    ["layout.option.snap"] = "Snap",
    ["layout.option.grid"] = "Grid",
    ["layout.option.grid_density.very_low"] = "Very Loose",
    ["layout.option.grid_density.low"] = "Loose",
    ["layout.option.grid_density.medium"] = "Normal",
    ["layout.option.grid_density.high"] = "Dense",
    ["layout.option.grid_density.very_high"] = "Very Dense",
    ["layout.option.locked"] = "Lock",
    ["layout.action.open"] = "Open Edit Mode",
    ["layout.action.close"] = "Close",
    ["layout.action.done"] = "Done",
    ["layout.action.settings"] = "Settings",
    ["layout.action.reset_selected"] = "Reset Frame",
    ["layout.action.reset_short"] = "Reset",
    ["layout.action.reset_all"] = "Reset All",
    ["layout.action.plugin_settings"] = "Plugin Settings",
    ["layout.action.anchor_settings"] = "Anchor",
    ["layout.action.pick_frame"] = "Pick",
    ["layout.action.picking_frame"] = "Picking",
    ["layout.hint.mousewheel_nudge"] = "Wheel nudge",
    ["layout.confirm.reset_selected"] = "Reset the selected frame to its default position?",
    ["layout.overlay.tooltip"] = "Drag to move. Wheel nudges Y by 1px; Shift+Wheel nudges X by 1px.",
    ["layout.message.combat_blocked"] = "Layout edit mode is unavailable in combat.",
    ["layout.panel.title"] = "YUI Edit Mode",
    ["layout.panel.selected"] = "Selected",
    ["layout.panel.hint.left_click"] = "Left-click: open nudge panel",
    ["layout.panel.hint.right_click"] = "Right-click: open settings",
    ["layout.panel.hint.shift_right_click"] = "Shift+right-click: temporarily hide this panel",
    ["layout.none_selected"] = "None",
    ["layout.anchor_target.screen"] = "Screen",
    ["layout.anchor_target.player"] = "Player Frame",
    ["layout.anchor_target.target"] = "Target Frame",
    ["layout.anchor_target.party"] = "Party Frames",
    ["layout.anchor_target.raid"] = "Raid Frames",
    ["layout.position.anchor_target"] = "Anchor Target",
    ["layout.position.frame_name"] = "Frame Name",
    ["layout.position.anchor_points"] = "Anchor Points",
    ["layout.position.point"] = "Frame Point",
    ["layout.position.relative_point"] = "Relative Point",
    ["layout.position.target_point"] = "Target Point",
    ["layout.position.offset_x"] = "X Offset",
    ["layout.position.offset_y"] = "Y Offset",
    ["layout.position.invalid_anchor_target"] = "Enter an existing global frame name.",
    ["layout.position.anchor_cycle"] = "This anchor would create a layout loop.",
    ["layout.position.anchor_pending"] = "Anchor frame is not created yet; waiting to restore placement",
    ["layout.position.anchor_fallback"] = "Original anchor is missing; using a temporary placement",
    ["layout.position.anchor_simulated"] = "Using a simulated anchor; target frame is not created yet",
    ["layout.position.pick_active"] = "Move the cursor over a named frame, then left-click it.",
    ["layout.position.pick_ready"] = "Current",
    ["layout.position.select_anchor_point"] = "Select anchor point",

    ["settings.general.title"] = "Components",
    ["settings.general.desc"] = "Manage YUI components, products, and standalone features.",
    ["settings.general.beta.label"] = "Beta",
    ["settings.general.beta.confirm_title"] = "Beta Component",
    ["settings.general.beta.confirm_message"] = "This is a beta component and may contain bugs. If you run into issues, please report the error details in the QQ group.",
    ["settings.general.beta.confirm_accept"] = "Enable Anyway",
    ["settings.general.feature.whisper_color.label"] = "Whisper Gradient",
    ["settings.general.feature.whisper_color.text"] = "Color your outgoing whispers with a gradient so conversations are easier to spot.",
    ["settings.general.feature.whisper_color.tooltip"] = "Apply gradient coloring to whispers you send.",
    ["settings.general.feature.trade_enhancement.label"] = "Trade Enhancement",
    ["settings.general.feature.trade_enhancement.text"] = "Automatically record trades and whisper what you paid; can also open and close bags with Baganator.",
    ["settings.general.feature.trade_enhancement.tooltip"] = "Combines trade whisper reports and automatic bag handling.",
    ["settings.general.feature.trade_enhancement.trade_whisper.label"] = "Trade Whisper",
    ["settings.general.feature.trade_enhancement.trade_whisper.tooltip"] = "Whisper the other player with trade details when you spend money in a trade.",
    ["settings.general.feature.trade_enhancement.auto_bag.label"] = "Auto Bags",
    ["settings.general.feature.trade_enhancement.auto_bag.tooltip"] = "Automatically open and close bags while trading. Baganator only.",
    ["settings.general.feature.trade_enhancement.merchant_frame.label"] = "Merchant Frame",
    ["settings.general.feature.trade_enhancement.merchant_frame.tooltip"] = "Expand the Wrath merchant frame to show more vendor items per page.",
    ["settings.general.feature.trade_enhancement.merchant_frame.conflict"] = "Merchant frame expansion is inactive because %s is loaded.",
    ["settings.general.feature.talent_frame_enhancement.label"] = "Talent Frame Enhancement",
    ["settings.general.feature.talent_frame_enhancement.text"] = "Enlarge and polish the Wrath talent frame while showing the other talent trees beside the selected one.",
    ["settings.general.feature.talent_frame_enhancement.conflict"] = "Talent frame enhancement is inactive because %s is loaded.",
    ["settings.general.feature.talent_frame_enhancement.tree_title"] = "%s  %s",
    ["settings.general.feature.talent_frame_enhancement.title"] = "Primary Talents",
    ["settings.general.feature.talent_frame_enhancement.title_primary"] = "Primary Talents",
    ["settings.general.feature.talent_frame_enhancement.title_secondary"] = "Secondary Talents",
    ["settings.general.feature.talent_frame_enhancement.title_pet"] = "Pet Talents",
    ["settings.general.feature.talent_frame_enhancement.active_status"] = "These are your active talents",
    ["settings.general.feature.talent_frame_enhancement.remaining"] = "Unspent talent points %d",
    ["settings.general.feature.talent_frame_enhancement.glyph_major"] = "Major Glyphs",
    ["settings.general.feature.talent_frame_enhancement.glyph_minor"] = "Minor Glyphs",
    ["settings.general.feature.talent_frame_enhancement.glyph_empty"] = "Empty glyph slot",
    ["settings.general.feature.talent_frame_enhancement.simulator"] = "Simulator",
    ["settings.general.feature.talent_frame_enhancement.learn"] = "Learn",
    ["settings.general.feature.talent_frame_enhancement.reset"] = "Reset",

    ["settings.appearance.title"] = "Theme",
    ["settings.appearance.desc"] = "Choose the base theme for the YUI settings interface. The theme is saved with the current profile and refreshes immediately.",
    ["settings.appearance.unavailable"] = "The GUI2 appearance system is not ready yet. Open this page again later.",
    ["settings.appearance.tab.skin"] = "Theme Skin",
    ["settings.appearance.tab.icons"] = "Class & Spec Icons",
    ["settings.appearance.tab.plugin_skins"] = "Addon Polish",
    ["settings.appearance.preset_title"] = "Theme Colors",
    ["settings.appearance.preset_desc"] = "Choosing a preset applies it to the current settings UI and saves it to the current profile.",
    ["settings.appearance.preset.midnight"] = "Midnight Cobalt",
    ["settings.appearance.preset.gilded"] = "Graphite Gilded",
    ["settings.appearance.preset.astral_violet"] = "Astral Violet",
    ["settings.appearance.preset.coming_soon"] = "Coming Soon",
    ["settings.appearance.preview_title"] = "Preview",
    ["settings.appearance.preview_panel"] = "Panel",
    ["settings.appearance.preview_popup"] = "Popup",
    ["settings.appearance.preview_tooltip"] = "Tooltip Border",
    ["settings.appearance.preview_button"] = "Button",
    ["settings.appearance.preview_selected"] = "Selected",
    ["settings.appearance.preview_accent"] = "Accent",
    ["settings.appearance.preview_border"] = "Border",
    ["settings.appearance.preview_all_specs"] = "Preview",
    ["settings.appearance.icons_title"] = "Choose Icon Style",
    ["settings.appearance.icons_desc"] = "Choose the class/spec icon source used by YUI. Standalone addons default to Blizzard icons; the suite can use custom spec icon sets registered here.",
    ["settings.appearance.icons_select_label"] = "Icon Style",
    ["settings.appearance.scope_title"] = "Appearance Scope",
    ["settings.appearance.scope.ydamage_meter"] = "YUI Damage Meter",
    ["settings.appearance.scope.ydamage_meter.tooltip"] = "Controls whether YUI Damage Meter uses the selected spec icon style.",
    ["settings.appearance.scope.light_damage"] = "LightDamage",
    ["settings.appearance.scope.light_damage.tooltip"] = "Controls whether LightDamage uses the selected spec icon style.",
    ["settings.appearance.scope.details_spec_sync"] = "Details Spec Sync",
    ["settings.appearance.scope.details_spec_sync.tooltip"] = "Controls whether YUI registers available custom spec icon packs with Details.",
    ["settings.appearance.scope.ybar"] = "Dual Bar",
    ["settings.appearance.scope.ybar.tooltip"] = "Controls whether spec icons shown in Dual Bar use the selected icon style.",
    ["settings.appearance.scope.class_extra_monitor"] = "Class Extra Monitor",
    ["settings.appearance.scope.class_extra_monitor.tooltip"] = "Controls whether spec icons shown in Class Extra Monitor settings use the selected icon style.",
    ["settings.appearance.scope.settings"] = "Settings Pages",
    ["settings.appearance.scope.settings.tooltip"] = "Controls whether spec icons shown in settings pages use the selected icon style.",
    ["settings.appearance.icons_empty"] = "This client cannot enumerate all class/spec icons yet. Enter the world to preview the current class.",
    ["settings.appearance.icons_unavailable"] = "The class/spec icon API is not ready yet. Open this page again later.",
    ["settings.appearance.armor.cloth"] = "Cloth",
    ["settings.appearance.armor.leather"] = "Leather",
    ["settings.appearance.armor.mail"] = "Mail",
    ["settings.appearance.armor.plate"] = "Plate",
    ["settings.appearance.icons.blizzard"] = "Blizzard Default",
    ["settings.appearance.icons.yuispec1"] = "YUI Chroma",
    ["settings.appearance.skins_title"] = "Shadows & Styling",
    ["settings.appearance.skins_scope_title"] = "Skin Scope",
    ["settings.appearance.skins_effect_title"] = "Skin Effects",
    ["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"] = "Enable",
    ["settings.appearance.plugin_skins_unavailable"] = "No plugin skin options are available for this client.",
    ["settings.appearance.skins.elvui"] = "ElvUI",
    ["settings.appearance.skins.elvui.tooltip"] = "Applies YUI suite skin styling to supported ElvUI and global frames. Requires reload.",
    ["settings.appearance.skins.eqol"] = "EQoL",
    ["settings.appearance.skins.eqol.tooltip"] = "Applies YUI suite skin styling to EnhanceQoL unit frames. Requires reload.",
    ["settings.appearance.skins.ndui"] = "NDui",
    ["settings.appearance.skins.ndui.tooltip"] = "Enables YUI appearance integrations for NDui. Requires reload.",
    ["settings.appearance.skins.ndui_text_shadow"] = "Add Shadow to Unit Frame Text",
    ["settings.appearance.skins.ndui_text_shadow.tooltip"] = "Adds a black 1,-1 shadow to NDui unit-frame text. Requires reload.",
    ["settings.appearance.skins.eqol_power_border"] = "Force 1 px border",
    ["settings.appearance.skins.eqol_power_border.tooltip"] = "Suppresses EnhanceQoL unit-frame and resource-bar borders at runtime, then draws YUI pixel-perfect 1 px borders. Reload or an EnhanceQoL refresh may be required.",
    ["settings.appearance.skins.shadow"] = "Soft Shadows",
    ["settings.appearance.skins.shadow.tooltip"] = "Adds soft outer and inner shadows for supported YUI skin integrations. Requires reload.",
    ["settings.appearance.skins.noise"] = "Noise Background",
    ["settings.appearance.skins.noise.tooltip"] = "Adds subtle noise texture to supported skinned frames. Requires reload.",
    ["settings.appearance.skins.light_mode"] = "Prismatic Class Colors",
    ["settings.appearance.skins.light_mode.tooltip"] = "Uses brighter class-color textures with highlight depth for supported ElvUI, NDui, and EQoL unit frame skins. Requires reload.",

    ["settings.profiles.title"] = "Profiles",
    ["settings.profiles.unknown"] = "Unknown",
    ["settings.profiles.current_profile"] = "Current profile: |cff00ff00%s|r",
    ["settings.profiles.management"] = "Profile Management",
    ["settings.profiles.select_profile"] = "Select profile:",
    ["settings.profiles.load_profile"] = "Load Profile",
    ["settings.profiles.delete_profile"] = "Delete Profile",
    ["settings.profiles.reset_current"] = "Reset Current",
    ["settings.profiles.confirm_load"] = "Switch to profile [%s]?\nThe UI will reload automatically.",
    ["settings.profiles.cannot_delete_last"] = "Cannot delete the last profile. Use Reset Current instead.",
    ["settings.profiles.confirm_delete"] = "Delete profile [%s]?\nThis cannot be undone.",
    ["settings.profiles.deleted_and_switched"] = "Deleted profile [%s] and switched to [%s].",
    ["settings.profiles.deleted"] = "Profile deleted.",
    ["settings.profiles.confirm_reset"] = "Reset the current profile to defaults?\nThis cannot be undone.",
    ["settings.profiles.reset_done"] = "Current profile reset.",
    ["settings.profiles.new_profile"] = "New Profile",
    ["settings.profiles.profile_name"] = "Profile name:",
    ["settings.profiles.create_profile"] = "Create Profile",
    ["settings.profiles.enter_profile_name"] = "Enter a profile name.",
    ["settings.profiles.profile_exists"] = "Error: profile name [%s] already exists.",
    ["settings.profiles.created_profile"] = "Created new profile based on [%s]: %s",
    ["settings.profiles.export"] = "Export",
    ["settings.profiles.export_current"] = "Export Current Profile",
    ["settings.profiles.import"] = "Import",
    ["settings.profiles.profile_string"] = "Profile string:",
    ["settings.profiles.import_apply"] = "Import and Apply",
    ["settings.profiles.enter_import_profile_name"] = "Enter a new profile name for the import.",
    ["settings.profiles.enter_profile_string"] = "Enter a profile string.",
    ["settings.profiles.invalid_profile_string"] = "Error: invalid profile string. Expected a product prefix such as !YUI-YBar-v2:, or legacy !YUI-v2: / !YUI:.",
    ["settings.profiles.decode_failed"] = "Decode failed. The string format is invalid.",
    ["settings.profiles.decompress_failed"] = "Decompression failed. The data may be corrupted.",
    ["settings.profiles.deserialize_failed"] = "Deserialization failed. The data structure is invalid.",
    ["settings.profiles.confirm_import"] = "Profile parsed successfully.\nCreate and apply new profile [%s]?\nThe UI will reload automatically.",
    ["settings.profiles.confirm_import_legacy"] = "This is a legacy profile string. The new YUI version will try to restore it, but full restoration is not guaranteed.\nCreate and apply new profile [%s]?\nThe UI will reload automatically.",

    ["settings.about.title"] = "About YUI",
    ["settings.about.description"] = "YUI is an all-in-one UI addon.\nVersion: %s\nAuthor: Ayan",
    ["settings.about.default_notes"] = "YUI is an all-in-one UI addon.",
    ["settings.about.details"] = "%s\nVersion: %s\nAuthor: %s",
    ["settings.about.follow"] = "If you like this standalone addon, follow the YUI suite and future updates.",

    ["settings.changelog.title"] = "Changelog",
    ["settings.changelog.empty"] = "No changelog entries available.",
    ["settings.changelog.popup_title"] = "YUI Changelog",
    ["settings.changelog.popup_subtext"] = "Version: |cff00ffff%s|r |cff00ff00(click to view)|r",

    ["settings.credits.title"] = "Credits",
    ["settings.credits.partners"] = "Partners",
    ["settings.credits.partner_desc"] = "The most important person",
    ["settings.credits.seniors"] = "Thanks to the veterans",
    ["settings.credits.seniors_desc"] = "I learned from their addons or received guidance and help from them. Thank you for contributing to players. Listed in no particular order.",
    ["settings.credits.addons"] = "Addon acknowledgements",
    ["settings.credits.addons_desc"] = "In the AI coding era, YUI inevitably references excellent work. This page records thanks. If anything is inappropriate, please contact me.",
    ["settings.credits.players"] = "All YUI players",
    ["settings.credits.players_desc"] = "YUI would not exist without your support. I will keep the original intent and keep making high-quality content.",
    ["settings.credits.players_suffix"] = " (too many names to list one by one)",

    ["settings.addon_list.title"] = "Addons",
    ["settings.addon_list.desc"] = "Major addons included in the YUI suite are listed here.",
    ["settings.addon_list.column.type"] = "Type",
    ["settings.addon_list.column.name"] = "Addon",
    ["settings.addon_list.column.desc"] = "Description",
    ["settings.addon_list.column.setting"] = "Settings",
    ["settings.addon_list.no_data"] = "No data",
    ["settings.addon_list.type.core"] = "Core",
    ["settings.addon_list.type.ui"] = "UI",
    ["settings.addon_list.type.cooldown"] = "Cooldown",
    ["settings.addon_list.type.nameplate"] = "Nameplate",
    ["settings.addon_list.type.tools"] = "Tools",
    ["settings.addon_list.type.combat"] = "Combat",
    ["settings.addon_list.type.config"] = "Config",
    ["settings.addon_list.type.bags"] = "Bags",
    ["settings.addon_list.type.cosmetic"] = "Cosmetic",
    ["settings.addon_list.type.assist"] = "Assist",
    ["settings.addon_list.type.notice"] = "Notice",
    ["settings.addon_list.desc.yui"] = "YUI configuration core addon",
    ["settings.addon_list.desc.elvui_ndui"] = "Base UI addon. Choose one of the two.",
    ["settings.addon_list.desc.toxiui"] = "ElvUI visual enhancement addon",
    ["settings.addon_list.desc.ayijecdm"] = "Cooldown manager styling",
    ["settings.addon_list.desc.plater"] = "Nameplate styling addon",
    ["settings.addon_list.desc.platynator"] = "Nameplate styling addon",
    ["settings.addon_list.desc.exwindtools"] = "Powerful utility collection",
    ["settings.addon_list.desc.warpdeplete"] = "Mythic+ timer styling",
    ["settings.addon_list.desc.murlokexport"] = "One-click talent import tool",
    ["settings.addon_list.desc.baganator"] = "Bag addon",
    ["settings.addon_list.desc.plumber"] = "Small utility collection",
    ["settings.addon_list.desc.waypoint"] = "Target beacon",
    ["settings.addon_list.desc.myslot"] = "Keybind and macro import/export tool",
    ["settings.addon_list.desc.no_data_wrath"] = "Wrath data will be added later.",
    ["settings.addon_list.desc.no_data_mists"] = "Mists data will be added later.",
    ["settings.addon_list.setting.ec_or_ndui"] = "/ec or /ndui",
    ["settings.addon_list.setting.esc_options_addons"] = "ESC - Options - AddOns",

    ["settings.help.title"] = "FAQ",
    ["settings.help.current_version"] = "Current game version: %s",
    ["settings.help.no_info"] = "No detailed help is available for this version yet.",
})
