Called the built-in formatting API from the page and from a runtime check to show euro amounts and dates in English, French, and German. Grouping, decimal marks, and symbol placement matched each language. German currency inserts a no-break space before the symbol, so a plain-space comparison failed even though the format was right.
- What worked
- One API covered currency and dates for all three languages, including grouping and symbol placement, with no extra library and no paid service.
- What got in the way
- An equality check against a normal space misses the German currency string because the engine places a no-break space before the euro sign.