All files / app-leaderboard/src/pages/i18n en.ts

94.33% Statements 50/53
75% Branches 3/4
94.11% Functions 48/51
94.23% Lines 49/52

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436            112x   17x                                     83x     794x     83x                   50x           24x                                     207x     16x 11x 12x   1x         26x             1x                                   10x       2x                                                                   4x       14x           4x     29x                         6x     24x         6x                                                                       10x 43x 42x             7x 7x 6x 1x         3x                                         18x 12x                                 120x                   9x 9x                 10x                   10x   10x           5x               10x           1x 1x                 2x     12x                                                                                                                     1x                                                                   1x 8x 113x            
/**
 * The Leaderboard pages' English text: the reference catalog. Every other language (ja.ts) has the same shape, so a
 * missing or extra entry fails the type check. Game terms players use as they are — lamp names (CLEAR), judgments
 * (PGREAT), DJ LEVEL, ruleset names (LR2 / beatoraja / That-Which-Must-Not-Be-Named) — stay out of the catalog and are never translated.
 */
 
const plural = (count: number, one: string, many: string): string => `${count} ${count === 1 ? one : many}`;
 
export const en = {
  locale: 'en',
  site: {
    name: 'Be-Music Leaderboard',
    previewAlt: 'Be-Music Leaderboard: rankings, replays and rivals for BMS players',
  },
  nav: {
    label: 'Leaderboard',
    menu: 'Menu',
    latest: 'Latest',
    latestTitle: 'Latest plays',
    help: 'Help',
    helpTitle: 'Help: what the figures and marks mean',
    play: 'Play',
    playTitle: 'Play in the browser',
    breadcrumb: 'Breadcrumb',
  },
  language: {
    menuTitle: 'Language',
    menuAria: (name: string) => `Language: ${name}`,
  },
  rules: {
    name: (label: string) => `${label} rules`,
    word: 'rules',
    menuTitle: 'The scoring rules the figures are shown under',
    menuAria: (name: string) => `Scoring rules: ${name}`,
    showUnder: 'Show scores under',
    notes: {
      lr2: 'LR2’s judgment windows, gauges and lamps',
      beatoraja: 'beatoraja’s, with the PERFECT and MAX lamps',
      ____: 'That-Which-Must-Not-Be-Named’s, with charge notes',
      plugout: 'plugout4 -ARCADE EDITION-’s, with its own gauges and score',
    },
    meaning:
      'Every play is scored under each ruleset: the judgment windows, gauges and clear lamps of LR2, beatoraja, That-Which-Must-Not-Be-Named or plugout, applied by the Be-Music engine to the replay. It is how the score is counted, not the software the play came from.',
    playedWith: (name: string) => `played with ${name}`,
    playedWithTitle: 'The scoring rules the player played under',
  },
  account: {
    signIn: 'Sign in',
    signUp: 'Sign up',
    accountOf: (handle: string) => `Account of @${handle}`,
    yourPage: 'Your page',
    settings: 'Settings',
    signOut: 'Sign out',
  },
 
  footer: {
    label: 'About the Leaderboard',
    about: 'About',
    help: 'Help',
    api: 'API',
    apiTitle: 'Opens in a new tab',
    github: 'GitHub',
    githubTitle: 'Opens GitHub',
    beta: 'Rankings may be reset while scoring rules settle.',
    copyright: '© 2026 nulltask · MIT License',
  },
  help: {
    more: 'More in Help',
    whatItMeans: (label: string) => `What ${label} means`,
  },
  count: {
    plays: (count: number) => plural(count, 'play', 'plays'),
    players: (count: number) => plural(count, 'player', 'players'),
    notes: (count: number) => `${count} notes`,
    playsBy: (plays: number, players: number) =>
      `${plural(plays, 'play', 'plays')} by ${plural(players, 'player', 'players')}`,
  },
  latest: {
    title: 'Latest',
    description: 'The latest plays on the Be-Music Leaderboard.',
    lead: (rules: string) => `The latest plays, scored under ${rules}.`,
    rowsLabel: 'a play row',
    rowsHelp:
      'Each row: the lamp’s colour bar, the chart with its mode and level, the player, what the play changed on their best, where it ranks, the rules it was played with, and its EX-Score with DJ LEVEL and rate.',
    empty: 'No plays yet.',
    emptyNamed: 'Plays by players who are not guests show here. Turn on “Guests” to see guest plays too.',
    runs: 'Latest course runs',
    runsLead: (rules: string) => `Dan, expert and NONSTOP course runs, scored under ${rules}.`,
  },
  filters: {
    everyPlay: 'Every play',
    everyPlayHelp: 'List each play on its own row, so a player can appear more than once',
    assisted: 'Assisted',
    assistedHelp: 'Plays with auto-scratch or a judgment window override, ranked apart',
    anonymous: 'Guests',
    anonymousHelp: 'Include guest accounts not yet kept with a passkey, Google or Discord',
    anonymousPlaysHelp: 'Include plays by guest accounts not yet kept with a passkey, Google or Discord',
    file: 'File',
    fileHelp:
      'One chart can come in several files (re-saves, re-encodes). Pick one to rank only its plays; the number is its plays.',
    chartFile: 'Chart file',
    allFiles: 'All files',
  },
  chart: {
    description: (title: string, rules: string, players: number) =>
      `${title} — ranking under ${rules}, ${plural(players, 'player', 'players')}.`,
    stats: { players: 'Players', plays: 'Plays', firstPlayed: 'First played', lastPlayed: 'Last played' },
    ranking: 'Ranking',
    clearLamps: 'Clear lamps',
    clearLampsLead: (rules: string) => `Best lamps of the players above, under ${rules}.`,
    details: 'Chart',
    rows: {
      chartset: 'Chartset',
      package: 'Package',
      genre: 'Genre',
      mode: 'Mode',
      notes: 'Notes',
      total: 'TOTAL',
      judgeRank: 'Judgment rank',
      lnMode: 'LN mode',
      lnModeHelp: 'How the chart’s long notes are judged: LN judges the start, CN the release too, HCN also the hold.',
      format: 'Format',
      randomOutcomes: '#RANDOM outcomes',
      fingerprint: 'Fingerprint',
      file: 'File',
      files: 'Files',
      firstSeen: 'First seen',
      listed: 'Listed publicly',
    },
    original: 'original',
    addOn: 'add-on (差分)',
    randomSeen: (count: number) => `${count} seen`,
    noneSeen: 'none seen',
    listedYes: 'yes',
    listedNo: 'not yet — once two players with an account have played it',
    notListedTitle: 'Not listed yet',
    notListedLead:
      'This chart is listed once two players with an account have played it. Until then it stays out of the latest plays, other players’ pages and search engines, and its ranking shows each player only their own record.',
    notListedSignIn: 'Sign in to see your own record.',
    notListedEmpty: 'Records show here once the chart is listed.',
  },
  course: {
    description: (name: string, rules: string, players: number) =>
      `${name} — course ranking under ${rules}, ${plural(players, 'player', 'players')}.`,
    kinds: { grade: 'Grade course', expert: 'Expert course', nonstop: 'NONSTOP course' } as Readonly<
      Record<string, string>
    >,
    stages: (count: number) => plural(count, 'stage', 'stages'),
    stats: { players: 'Players', runs: 'Runs', firstRun: 'First run', lastRun: 'Last run' },
    ranking: 'Ranking',
    rankingHelp:
      'Players by their best course EX-Score; each row opens the run that set it. The lamp and BP are their best lamp and fewest BP, which can come from other runs.',
    clearLamps: 'Clear lamps',
    clearLampsLead: (rules: string) => `Best course lamps of the players above, under ${rules}.`,
    stageList: 'Stages',
    stageListLead: 'The charts of the course, in the order they are played; each opens its own ranking.',
    stageLabel: (stage: number) => `Stage ${stage}`,
    unknownChart: 'a chart not played here on its own',
    details: 'Course',
    rows: {
      kind: 'Kind',
      constraints: 'Constraints',
      stages: 'Stages',
      fingerprint: 'Course ID',
      firstRun: 'First run',
    },
    noConstraints: 'none',
  },
  courseRun: {
    crumb: (name: string) => `${name}’s run`,
    runBy: 'run by',
    stagesReached: 'Stages',
    stagesOf: (reached: number, total: number) => `${reached} / ${total}`,
    trophy: 'Trophy',
    noTrophy: 'none',
    stages: 'Stages',
    stagesLead: (rules: string) =>
      `Each stage under ${rules}. The gauge is what the stage left for the next one; BP counts the notes a failed stage never judged.`,
    notReached: 'not reached',
    noBreakdown: 'This run was stored before its stages were kept one by one.',
    details: 'Run',
    course: 'Course',
    replay: 'Replay',
    downloadReplay: 'Download course replay',
    hiddenTitle: 'This run is hidden',
    hiddenLead:
      'Only you can see it. It is out of the course rankings, your personal bests and every list until you show it again.',
    unrankedTitle: 'This run is not ranked',
    unrankedReasons: {
      'bmson-total':
        'The bmson zero-total no-recovery policy was used. The play is kept without changing rankings or personal bests.',
      tempo:
        'A stage was played at another tempo, which is practice. The run is kept, but out of the course rankings, the personal bests and every list.',
      unreleased:
        'The course is not released (a made or a random course). The run is kept, but out of the course rankings, the personal bests and every list.',
      assist:
        'A stage was played with an assist option, and neither LR2 nor beatoraja saves an assisted course. The run is kept, but out of the course rankings, the personal bests and every list.',
    },
    notPublicTitle: 'This run is not public',
    visibility: 'Visibility',
    visibilityShownLead:
      'Hide this run to take it out of the course rankings, your personal bests and every list. It is kept, and you can show it again.',
    visibilityHiddenLead:
      'Show this run again to put it back in the course rankings, your personal bests and the lists.',
    hide: 'Hide this run',
    show: 'Show this run',
  },
  lists: {
    ranking: 'Ranking',
    latestPlays: 'Latest plays',
    nobody: 'Nobody here yet',
    noMatch: 'No plays match these filters.',
    noPlays: 'No plays here yet',
    playOfPlayer: (name: string, rank: number) => `Play of ${name}, rank ${rank}`,
    playOfChart: (title: string, name: string) => `Play of ${title} by ${name}`,
    rankAmong: (players: number) => `Rank among ${plural(players, 'player', 'players')} on this chart`,
    aboveBest: 'Above the player’s previous best EX-Score',
    fewerMisses: 'Fewer misses than the player’s previous best',
    anonymous: 'guest',
    assist: 'assist',
    latestRuns: 'Latest course runs',
    noRuns: 'No course runs here yet',
    runOfPlayer: (name: string, rank: number) => `Run of ${name}, rank ${rank}`,
    runOfCourse: (course: string, name: string) => `Run of ${course} by ${name}`,
    rankAmongOnCourse: (players: number) => `Rank among ${plural(players, 'player', 'players')} on this course`,
    stagesReached: (reached: number, total: number) => `stage ${reached} / ${total}`,
    onlyYouRun: 'Only you see this run in the rankings and lists.',
  },
  visibility: {
    /** Sentences run together, as the language spaces them. */
    sentences: (parts: readonly string[]) => parts.join(' '),
    notPublic: 'not public',
    hidden: 'hidden',
    onlyYou: 'Only you see this play in the rankings and lists.',
    reasonHidden: 'You hid it; open it to show it again.',
    reasonNotListed: 'Its chart is not listed yet: it is listed once two players who are not guests have played it.',
    reasonAnonymous: 'It was played as a guest: the rankings and Latest show it only with “Guests” on.',
    passkeyHint: 'Keep your account with a passkey, Google or Discord and your earlier plays become public too.',
    title: 'This play is not public',
    lead: 'The rankings and the Latest list leave it out:',
  },
  lnModes: {
    1: 'LN — the start is judged; hold to the end',
    2: 'CN — the release is judged too',
    3: 'HCN — the release is judged, and holding gains or drains the gauge',
  },
  cards: {
    lampsHelp: 'The best lamp each play reached, lowest first; each ruleset tops out at its own lamp.',
    djHelp: 'The EX-Score rate in ninths: AAA from 88.89%, AA from 77.78%, down to F.',
    elsewhere: 'Elsewhere',
    elsewhereLead: 'This chart on other Internet Rankings and on BMS Search.',
    search: (site: string) => `Search ${site}`,
    opensAnotherSite: (name: string) => `${name} (opens another site)`,
    file: (hash: string) => `file ${hash}`,
  },
  playInfo: {
    details: 'Play details',
    played: 'Played',
    playedUnder: 'Played under',
    gauge: 'Gauge',
    lanes: 'Lanes',
    assists: 'Assists',
    none: 'none',
    length: 'Length',
    verified: 'Verified',
    app: 'App',
    recordedWith: 'Recorded with',
    sentFrom: 'Sent from',
    scoredBy: 'Scored by',
    engine: (version: string) => `Be-Music engine ${version}`,
    unknown: 'unknown',
    unknownApp: 'unknown app',
    verification: {
      L4: 'L4 — the chart played is known to be this one',
      L3: 'L3 — the chart played matches its fingerprint',
    } as Readonly<Record<string, string>>,
  },
  notFound: {
    title: 'Not found',
    description: (what: string) => `${what} not found.`,
    lead: (what: string) => `${what} does not exist, or it was removed.`,
    chart: 'This chart',
    chartset: 'This chartset',
    player: 'This player',
    score: 'This score',
    course: 'This course',
    page: 'This page',
  },
  player: {
    description: (name: string, handle: string) => `${name} (@${handle}) on the Be-Music Leaderboard.`,
    stats: {
      plays: 'Plays',
      charts: 'Charts',
      playTime: 'Play time',
      notes: 'Notes',
      averageRate: 'Average rate',
      lastPlayed: 'Last played',
    },
    clearLamps: 'Clear lamps',
    clearLampsLead: (rules: string) => `Best lamp per chart under ${rules}, without assists.`,
    djRanks: 'DJ Ranks',
    djRanksLead: (rules: string) => `Best EX-Score per chart under ${rules}, without assists.`,
    details: 'Player',
    joined: 'Joined',
    firstPlay: 'First play',
    playedUnder: 'Played under',
    playedUnderHelp: 'The rules the player’s plays were played with. Every play is still scored under all three.',
    playsUnder: (rules: string, plays: number) => `${rules}: ${plural(plays, 'play', 'plays')}`,
    latestPlays: 'Latest plays',
    empty: 'No plays yet.',
    latestRuns: 'Latest course runs',
  },
  judgments: {
    title: 'Judgments',
    help: 'PGREAT, GREAT and GOOD keep the combo; BAD and POOR break it. Empty POOR is a press with no note. BP counts BAD, POOR and empty POOR.',
    lead: (rules: string) => `Every note of every play under ${rules}.`,
    empty: 'No plays yet.',
    emptyPoor: 'empty POOR (a press with no note)',
  },
  chartset: {
    description: (title: string, charts: number) =>
      `${title} — ${plural(charts, 'chart', 'charts')} on the Be-Music Leaderboard.`,
    charts: (count: number) => plural(count, 'chart', 'charts'),
    grouping: 'Charts are grouped as BMS Search files them, by hand; a chart it has not filed yet stays on its own.',
    listLabel: 'Charts',
    empty: 'No charts yet',
    emptyLead: 'No chart of this work has been played here.',
    original: 'original',
    originalMeaning: 'Came in the work’s own package.',
    addOn: 'add-on',
    addOnMeaning: 'An add-on chart (差分), distributed separately from the work.',
    players: (count: number): string => (count === 1 ? 'player' : 'players'),
  },
  score: {
    crumb: (name: string) => `${name}’s play`,
    playedBy: 'played by',
    scoredWith: 'Scored with',
    eachSet: 'each set of rules',
    rulesLabel: 'the rule sets',
    rulesHelp:
      'Every play is scored under LR2, beatoraja and That-Which-Must-Not-Be-Named rules. “selected” is the one the pages show; “played with” is the one the player played under.',
    selected: 'selected',
    playedWith: 'played with',
    combo: 'Combo',
    gauge: 'Gauge',
    details: 'Play',
    played: 'Played',
    gaugeHelp: 'The gauge the player chose, as each ruleset names it.',
    assists: 'Assists',
    none: 'none',
    verification: 'Verification',
    verificationHelp:
      'How far the chart in the replay was checked. Every play is recounted from its inputs either way.',
    chart: 'Chart',
    fingerprint: 'Fingerprint',
    replay: 'Replay',
    downloadReplay: 'Download replay',
    share: 'Share',
    shareDrawing: 'Your share card is being drawn; links to this page show it.',
    shareShown: 'Links to this page show this card.',
    postOnX: 'Post on X',
    shareNative: 'Share…',
    copyLink: 'Copy link',
    hiddenTitle: 'This play is hidden',
    hiddenLead:
      'Only you can see it. It is out of the rankings, your personal bests, your figures and every list until you show it again.',
    unrankedTitle: 'This play is not ranked',
    unrankedReasons: {
      'bmson-total':
        'The bmson zero-total no-recovery policy was used. The play is kept without changing rankings or personal bests.',
      tempo:
        'It was played at another tempo, which is practice. It is kept, but out of the rankings, the personal bests and every list.',
      'course-stage':
        'It is a course stage, which ranks with its course. It is kept, but out of the rankings, the personal bests and every list.',
      'no-save':
        'It used an option whose original game saves no data from the play (such as BATTLE under That-Which-Must-Not-Be-Named rules, or PRACTICE). It is kept, but out of the rankings, the personal bests and every list.',
    },
    visibility: 'Visibility',
    visibilityShownLead:
      'Hide this play to take it out of the rankings, your personal bests, your figures and every list. It is kept, and you can show it again.',
    visibilityHiddenLead: 'Show this play again to put it back in the rankings, your personal bests and the lists.',
    hide: 'Hide this play',
    show: 'Show this play',
  },
  settings: {
    title: 'Settings',
    description: 'Your Be-Music Leaderboard profile.',
    signedOutLead: 'Sign in to change your handle, display name and avatar.',
    signIn: 'Sign in',
    signInLead: 'Sign in with a passkey, Google or Discord.',
    signInWithPasskey: 'Sign in',
    noPasskey:
      'No account yet? Start as a guest from the sign-in page; keep the account later with a passkey, Google or Discord and your plays come with you.',
    signedInAs: (handle: string) => `Signed in as @${handle}`,
    anonymousSuffix: ' (guest)',
    profile: 'Profile',
    profileLead: 'Your handle names your page; your display name is what the rankings show.',
    handle: 'Handle',
    handleHint: '3 to 15 letters, digits or _. Your old handle stays yours, and links to it keep working.',
    name: 'Display name',
    nameHint: 'Up to 32 characters, in any script.',
    save: 'Save',
    avatar: 'Avatar',
    avatarLead: 'Shown next to your name. Pictures are cropped to a square and shrunk to 256 px.',
    upload: 'Upload an avatar',
    useGenerated: 'Use the generated avatar',
    passkeys: 'Passkeys',
    passkeysAnonymous:
      'You are playing as a guest. Keep this account with a passkey, Google or Discord to sign in on other devices.',
    passkeysCount: (count: number) => `${plural(count, 'passkey', 'passkeys')}. A passkey signs you in on any device.`,
    keepAccount: 'Keep this account with a passkey',
    addPasskey: 'Add a passkey',
  },
  lampMeanings: {
    1: 'Did not clear.',
    2: 'Cleared with an ASSIST option (beatoraja) or on the ASSISTED EASY gauge (That-Which-Must-Not-Be-Named), or before #603 on the ASSIST EASY gauge.',
    10: 'Cleared on the ASSIST EASY gauge, or with a LIGHT ASSIST option (beatoraja).',
    3: 'Cleared on the EASY gauge.',
    4: 'Cleared on GROOVE / NORMAL, or on DEATH or DEATH corrected under LR2 rules.',
    5: 'Cleared on the HARD gauge.',
    6: 'Cleared on EX-HARD.',
    7: 'No BAD and no missed POOR (empty POORs do not count), or a beatoraja HAZARD gauge clear. The top lamp under LR2 and That-Which-Must-Not-Be-Named.',
    8: 'A full combo without a GOOD (beatoraja).',
    9: 'Every note a PGREAT (beatoraja).',
    none: 'Not played.',
  } as Readonly<Record<number | 'none', string>>,
  duration: {
    hoursMinutes: (hours: number, minutes: number) => `${hours}h ${minutes}m`,
    minutesSeconds: (minutes: number, seconds: number) => `${minutes}m ${seconds}s`,
    seconds: (seconds: number) => `${seconds}s`,
  },
};
 
/** The shape every language's catalog takes. */
export type Messages = typeof en;