PubTrivia's British copy and American code split cleanly along the identifier boundary
A developer audited PubTrivia's 72 public pages and its codebase to see where its British English copy meets its American English code. The public text was consistently British across all tested terms, including the noun-versus-verb rule for licence and license. In the repository, American spellings appear almost entirely in identifiers such as CSS classes and API values, while British spellings appear in prose, comments and seed data. Some American spellings, like color-scheme and Intl.NumberFormat, are fixed by web standards and cannot be changed. The author notes that the split is not between files but within them, since the same developer writes both styles on adjacent lines depending on whether a word is a name or a sentence.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in