html10n.js: Finally fix two-part locale specs

fixes #1706
Merge pull request #1711 from ether/fix/two-part-locales

html10n.js: Finally fix two-part locale specs