local locale = GetLocale()

local enUS = {
  -- UI
  SETTINGS_TITLE = "PvPScout Settings",
  SETTINGS_SUBTITLE = "Configure what PvPScout shows in tooltips and how it looks. Changes apply immediately.",
  SECTION_GENERAL = "General",
  SECTION_DISPLAY = "Display",
  SECTION_DATA = "Data & Behavior",
  ENABLE = "Enable PvPScout",
  SHOW_RANK = "Show rank next to rating",
  SHOW_MINIMAP = "Show minimap icon",
  RESET_MINIMAP = "Reset minimap position",
  BRACKETS_HEADER = "Show these brackets in tooltip:",
  SHOW_HEADER = "Show header",
  SHOW_UPDATED = "Show 'updated X ago'",
  COLOR_BY_RATING = "Color by rating",
  STALE_HOURS = "Stale data threshold (hours)",
  TIP_SLASH = "Tip: You can also use /pvpscout enable|disable",
  -- removed COMPAT_HOOK settings: tooltip hook is automatic now
  -- Brackets
  B2V2 = "2v2",
  B3V3 = "3v3",
  B_SHUFFLE = "Solo Shuffle",
  B_RBG = "RBG 10v10",
  B_BLITZ = "Blitz RBG",
  -- Tooltip
  UPDATED_AGO = "Updated %s ago",
  STALE_NOTICE = "Data may be outdated",
  NO_DATA = "No PvP data available",
  PLACEHOLDER = "—",
  -- Titles/labels
  TITLE_BRACKET_RATING = "Rating",
  RANK = "Rank",
  TREND = "Trend",
  TREND_PLACEHOLDER = "—",
  SPEC_SENSITIVE_SHUFFLE = "Use current spec only for Shuffle/Blitz (hide ratings from other specs)",
  -- Minimap menu
  MENU_TITLE = "PvPScout",
  MENU_ENABLE = "Enable",
  MENU_DISABLE = "Disable",
  MENU_SHOW_RANK = "Show rank",
  MENU_SHOW_HEADER = "Show header",
  MENU_SHOW_UPDATED = "Show updated age",
  MENU_COLOR_BY_RATING = "Color by rating",
  MENU_BRACKETS = "Brackets",
  MENU_OPEN_SETTINGS = "Open settings...",
  MENU_SHOW_MINIMAP = "Show minimap icon",
  MENU_RESET_MINIMAP = "Reset minimap position",
  MENU_SHARE_CHAT = "Share ratings to chat",
  NO_PLAYER_TARGET = "No player target.",
  MINIMAP = "Minimap",
  BRACKETS = "Brackets",
  SHOWN = "shown",
  HIDDEN = "hidden",
  -- Minimap hover tooltip
  MINIMAP_TIP_LEFT = "Left-click: Open settings",
  MINIMAP_TIP_BRACKETS = "Brackets: %s",
  MINIMAP_TIP_BRACKETS_SETTINGS = "Brackets shown in Settings: %s",
  -- Options info
  LAST_UPDATED_LINE = "Last updated: %s ago (%s)",
  NO_DATA_YET = "No data yet",
  STALE_EXPLAIN = "Tooltips show a red 'Data may be outdated' banner when older than this threshold.",
  LEGEND_TITLE = "Legend:",
  LEGEND_PLACEHOLDER = "The '—' symbol means no data available for this player (rating likely too low for official leaderboards).",
  LEGEND_TOP001 = "Top 0.01% (orange)",
  LEGEND_GE_2400 = ">= 2400 (purple)",
  LEGEND_GE_2100 = ">= 2100 (silver)",
  LEGEND_GE_1800 = ">= 1800 (blue)",
  LEGEND_LT_1800 = "< 1800 (green)",
  LEGEND_DISABLED_GRAY = "Disabled: fixed gray", -- legacy (kept for compatibility)
  LEGEND_NO_DATA_DASH = "—: No data available",
  PREVIEW_TITLE = "Preview",
  PREVIEW_REFRESH = "Refresh preview",
  -- Setup/info additions
  RELOAD_UI = "Reload UI",
  DATA_VISIBILITY_TITLE = "When no data is shown",
  DATA_VISIBILITY_BODY = "PvPScout can only display ratings and ranks for characters that appear on Blizzard's official leaderboards for the selected region and bracket. If a player is not on the leaderboard (e.g., rating too low, very new character, or not yet indexed), the tooltip will show a '—' placeholder instead.",
  ENABLED = "enabled",
  DISABLED = "disabled",
  MENU_UNAVAILABLE = "menu unavailable on this client",
  BRACKET_ORDER_UPDATED = "Bracket order updated",
  RESET_DEFAULTS = "Reset to defaults",
  RESET_DONE = "Defaults restored",
  CLEAR_HISTORY = "Clear trend history",
  CLEARED_HISTORY = "Trend history cleared",
}

local deDE = {
  SETTINGS_TITLE = "PvPScout Einstellungen",
  SETTINGS_SUBTITLE = "Lege fest, was PvPScout im Tooltip anzeigt und wie es aussieht. Änderungen wirken sofort.",
  SECTION_GENERAL = "Allgemein",
  SECTION_DISPLAY = "Darstellung",
  SECTION_DATA = "Daten & Verhalten",
  ENABLE = "PvPScout aktivieren",
  SHOW_RANK = "Rang neben Wertung anzeigen",
  SHOW_MINIMAP = "Minimap-Symbol anzeigen",
  RESET_MINIMAP = "Minimap-Position zurücksetzen",
  BRACKETS_HEADER = "Diese Brackets im Tooltip anzeigen:",
  SHOW_HEADER = "Kopfzeile anzeigen",
  SHOW_UPDATED = "\"Aktualisiert vor X\" anzeigen",
  COLOR_BY_RATING = "Farbe nach Wertung",
  STALE_HOURS = "Grenze für veraltete Daten (Stunden)",
  TIP_SLASH = "Tipp: Du kannst auch /pvpscout enable|disable verwenden",
  -- removed COMPAT_HOOK settings: tooltip hook is automatic now
  B2V2 = "2v2",
  B3V3 = "3v3",
  B_SHUFFLE = "Solo Shuffle",
  B_RBG = "RBG 10v10",
  B_BLITZ = "Blitz RBG",
  UPDATED_AGO = "Aktualisiert vor %s",
  STALE_NOTICE = "Daten könnten veraltet sein",
  NO_DATA = "Keine PvP-Daten verfügbar",
  PLACEHOLDER = "—",
  TITLE_BRACKET_RATING = "Wertung",
  RANK = "Rang",
  TREND = "Trend",
  TREND_PLACEHOLDER = "—",
  SPEC_SENSITIVE_SHUFFLE = "Nur aktuelle Spezialisierung für Shuffle/Blitz verwenden (Werte anderer Specs ausblenden)",
  MENU_TITLE = "PvPScout",
  MENU_ENABLE = "Aktivieren",
  MENU_DISABLE = "Deaktivieren",
  MENU_SHOW_RANK = "Rang anzeigen",
  MENU_SHOW_HEADER = "Kopfzeile anzeigen",
  MENU_SHOW_UPDATED = "Aktualisierung anzeigen",
  MENU_COLOR_BY_RATING = "Farbe nach Wertung",
  MENU_BRACKETS = "Brackets",
  MENU_OPEN_SETTINGS = "Einstellungen öffnen...",
  MENU_SHOW_MINIMAP = "Minimap-Symbol anzeigen",
  MENU_RESET_MINIMAP = "Minimap-Position zurücksetzen",
  MENU_SHARE_CHAT = "Werte im Chat teilen",
  NO_PLAYER_TARGET = "Kein Spieler anvisiert.",
  MINIMAP = "Minimap",
  BRACKETS = "Brackets",
  SHOWN = "sichtbar",
  HIDDEN = "ausgeblendet",
  -- Minimap hover tooltip
  MINIMAP_TIP_LEFT = "Linksklick: Einstellungen öffnen",
  MINIMAP_TIP_BRACKETS = "Brackets: %s",
  MINIMAP_TIP_BRACKETS_SETTINGS = "In den Einstellungen ausgewählte Brackets: %s",
  -- Options info
  LAST_UPDATED_LINE = "Zuletzt aktualisiert: vor %s (%s)",
  NO_DATA_YET = "Noch keine Daten",
  STALE_EXPLAIN = "Tooltips zeigen einen roten Hinweis 'Daten könnten veraltet sein', wenn älter als dieser Schwellenwert.",
  LEGEND_TITLE = "Legende:",
  LEGEND_PLACEHOLDER = "Das '—' Symbol bedeutet keine Daten verfügbar für diesen Spieler (Wertung wahrscheinlich zu niedrig für offizielle Bestenlisten).",
  LEGEND_TOP001 = "Top 0,01% (Orange)",
  LEGEND_GE_2400 = ">= 2400 (Lila)",
  LEGEND_GE_2100 = ">= 2100 (Silber)",
  LEGEND_GE_1800 = ">= 1800 (Blau)",
  LEGEND_LT_1800 = "< 1800 (Grün)",
  LEGEND_DISABLED_GRAY = "Deaktiviert: Grau", -- legacy (beibehalten für Kompatibilität)
  LEGEND_NO_DATA_DASH = "—: Keine Daten vorhanden",
  PREVIEW_TITLE = "Vorschau",
  PREVIEW_REFRESH = "Vorschau aktualisieren",
  -- Setup/info additions
  RELOAD_UI = "UI neu laden",
  DATA_VISIBILITY_TITLE = "Wann keine Daten angezeigt werden",
  DATA_VISIBILITY_BODY = "PvPScout zeigt Werte nur für Charaktere an, die in den offiziellen Blizzard-Bestenlisten der gewählten Region und des Brackets auftauchen. Ist ein Spieler nicht in der Bestenliste (z. B. Wertung zu niedrig, sehr neuer Charakter oder noch nicht indiziert), erscheint im Tooltip der Platzhalter '—'.",
  ENABLED = "aktiviert",
  DISABLED = "deaktiviert",
  MENU_UNAVAILABLE = "Menü auf diesem Client nicht verfügbar",
  BRACKET_ORDER_UPDATED = "Bracket-Reihenfolge aktualisiert",
  RESET_DEFAULTS = "Auf Standard zurücksetzen",
  RESET_DONE = "Standardeinstellungen wiederhergestellt",
  CLEAR_HISTORY = "Trendverlauf löschen",
  CLEARED_HISTORY = "Trendverlauf gelöscht",
}

local dict = (locale == "deDE") and deDE or enUS

function PvPScout_L(key)
  return dict[key] or key
end
