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",
  -- 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",
  -- 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",
}

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",
  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",
  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",
}

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

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