I don't know i10n, but should this be `.replace('_', '-');` or `.replace(/_/, '-');`?
I vaguely recall some discussion about the [ja_JP_mac](https://github.com/mozilla/fxa-content-server-l10n/tree/master/locale) locale, which happens to have multiple underscores.