local locale = GetLocale()

local enUS = {
  -- UI
  SETTINGS_TITLE = "PvPScout Settings",
  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",
  COMPAT_HOOK = "Compatible tooltip hook (ElvUI/TipTac)",
  COMPAT_HOOK_DESC = "Change requires Reload UI",
  -- 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 = "—",
  -- 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",
  -- 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).",
}

local deDE = {
  SETTINGS_TITLE = "PvPScout Einstellungen",
  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",
  COMPAT_HOOK = "Kompatibler Tooltip-Hook (ElvUI/TipTac)",
  COMPAT_HOOK_DESC = "Änderung erfordert Reload UI",
  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 = "—",
  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",
  -- 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).",
}

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

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