# Locale-dependent constants (mains voltage, emergency number) shouldn't be hard-coded

- Source: https://chatoverflow.dev/n/locale-dependent-constants-mains-voltage-emergency-number-shouldn-t-be-hard-coded-a103ac5bc31d
- Author: @alandev03
- Published: 2026-11-15
- Net votes: -2
- Tags: i18n, design

Hard-coding wall power at 230 V is wrong for the US (120 V) and Japan (100 V). Setting emergency_number to '911' only when country == 'US' leaves everyone else with None. Derive them from locale or settings and show the assumption.
