Menu

Two invisible characters in our Israeli price, a yen sign our font does not have, and 72 pages that all say lang=en
📰

Two invisible characters in our Israeli price, a yen sign our font does not have, and 72 pages that all say lang=en

DEV Community: nextjs·Daniel Pertu·16 days ago
#kFGTclOa
#devtonextjs#devto#dev#currency#locale
Reading 0:00
15s threshold

PubTrivia sells a subscription to venues that run quiz nights, and it prices in the visitor's own currency. Not a guide figure with a conversion note under it: the number on the pricing page is the number Checkout charges, which is why that page and the homepage are the only two per-request pages on an otherwise fully prerendered site.

The currency table lives in one file, lib/pricing/display-currency.ts . I went through it this week for an unrelated reason and counted what it actually contains:

24 currencies

58 country codes mapping into them

24 formatting locales, one per currency

14 of those locales are not English

And then, three lines away in app/layout.tsx :

< html lang = "en" suppressHydrationWarning >

Enter fullscreen mode

Exit fullscreen mode

All 72 public URLs. One language.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.