/** English (en) messages for the Wordle client. */

export const en = {
  /** Keyboard layout — three rows of key labels. Special: 'Enter' and 'Backspace'. */
  keyboardRows: [
    ['q', 'w', 'e', 'r', 't', 'y', 'u', 'i', 'o', 'p'],
    ['a', 's', 'd', 'f', 'g', 'h', 'j', 'k', 'l'],
    ['Enter', 'z', 'x', 'c', 'v', 'b', 'n', 'm', 'Backspace'],
  ],

  /** Backspace key display label */
  backspaceLabel: '⌫',

  title: 'Wordle',

  /** Screen 1 — Rules */
  rules: {
    heading: 'How to Play',
    bullets: [
      'Guess the 5-letter word in 6 attempts.',
      'After each guess, letters light up with colors:',
    ],
    greenDesc: 'Green — correct letter, correct position',
    yellowDesc: 'Yellow — letter in word, wrong position',
    grayDesc: 'Gray — letter not in word',
    playButton: 'Play',
  },

  /** Screen 2 — Game */
  game: {
    hint: 'Type a 5-letter word and press Enter',
    unknownWord: 'Unknown word',
  },

  /** Screen 3 — Results */
  results: {
    congratulations: 'Congratulations!',
    betterLuck: 'Better luck next time',
    solvedIn: (n: number) => `Solved in ${n} ${n === 1 ? 'attempt' : 'attempts'}`,
    theWordWas: (w: string) => `The word was: ${w.toUpperCase()}`,
    statistics: 'Statistics',
    played: 'Played',
    winRate: 'Win Rate',
    streak: 'Streak',
    maxStreak: 'Max Streak',
    noGames: 'No games yet.',
    solverCaption: 'How the solvers cracked this word:',
    playAgain: 'Play Again',
  },

  /** Shared labels */
  keyEnter: 'Enter',
  keyBackspace: 'Backspace',
};
