en.ts 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /** English (en) messages for the Wordle client. */
  2. export const en = {
  3. /** Keyboard layout — three rows of letter keys. Nav keys are in navRow. */
  4. keyboardRows: [
  5. ['q', 'w', 'e', 'r', 't', 'y', 'u', 'i', 'o', 'p'],
  6. ['a', 's', 'd', 'f', 'g', 'h', 'j', 'k', 'l'],
  7. ['z', 'x', 'c', 'v', 'b', 'n', 'm'],
  8. ],
  9. /** Navigation row: Enter, Left, Right, Backspace */
  10. navRow: ['Enter', 'ArrowLeft', 'ArrowRight', 'Backspace'],
  11. /** Backspace key display label */
  12. backspaceLabel: '⌫',
  13. /** Arrow key display labels */
  14. arrowLeftLabel: '←',
  15. arrowRightLabel: '→',
  16. title: 'Wordle',
  17. /** Screen 1 — Rules */
  18. rules: {
  19. heading: 'How to Play',
  20. bullets: [
  21. 'Guess the 5-letter word in 6 attempts.',
  22. 'After each guess, letters light up with colors:',
  23. ],
  24. greenDesc: 'Green — correct letter, correct position',
  25. yellowDesc: 'Yellow — letter in word, wrong position',
  26. grayDesc: 'Gray — letter not in word',
  27. playButton: 'Play',
  28. },
  29. /** Screen 2 — Game */
  30. game: {
  31. hint: 'Type a 5-letter word and press Enter',
  32. hintLabel: 'Hint',
  33. unknownWord: 'Unknown word',
  34. },
  35. /** Screen 3 — Results */
  36. results: {
  37. congratulations: 'Congratulations!',
  38. betterLuck: 'Better luck next time',
  39. solvedIn: (n: number) => `Solved in ${n} ${n === 1 ? 'attempt' : 'attempts'}`,
  40. theWordWas: (w: string) => `The word was: ${w.toUpperCase()}`,
  41. statistics: 'Statistics',
  42. played: 'Played',
  43. winRate: 'Win Rate',
  44. streak: 'Streak',
  45. maxStreak: 'Max Streak',
  46. noGames: 'No games yet.',
  47. solverCaption: 'How the solvers cracked this word:',
  48. playAgain: 'Play Again',
  49. },
  50. /** Shared labels */
  51. keyEnter: 'Enter',
  52. keyBackspace: 'Backspace',
  53. keyArrowLeft: 'ArrowLeft',
  54. keyArrowRight: 'ArrowRight',
  55. };