A simple, localized webpage that displays "YES" in different languages based on the visitor's browser language settings.
ax710.org and y-a-v-a.org
- Automatic browser language detection
- Localized "yes" translations for 80+ countries/regions
- Special handling for multilingual countries (e.g., Switzerland shows language-specific responses)
- Centered display with large, readable text
The page detects the visitor's browser language using navigator.language and displays the appropriate translation of "yes" using a comprehensive country code mapping.
For Switzerland (CH), the response varies by language:
- German (
de-CH): JA - French (
fr-CH): OUI - Italian (
it-CH): SÌ - Romansh (
rm-CH): GEA - Default: JA/OUI/SÌ/GEA (all languages)
You can test different locales using browser DevTools:
// Set a specific locale Object.defineProperty(navigator, 'language', {value: 'fr-FR', configurable: true}); location.reload();
With huge thanks to Brandon Jones (@btj) - this concept is adapted from isitchristmas.com.
References to Eric Mill (@konklone) for the original inspiration.
This work is licensed under Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0).