i18n: Allow custom language codes
authorKevin Gimbel <hallo@kevingimbel.com>
Sun, 15 Oct 2017 10:35:25 +0000 (12:35 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sat, 4 Nov 2017 09:48:29 +0000 (10:48 +0100)
commitbb04010cbfd92837685f98c3e0f5362ba00ce487
tree921853e7b687e0e85f05aa27a4a1ecd24702592f
parent76dc811c6539b2ed8b4d3b22693e5088b9f6ecfe
i18n: Allow custom language codes

Use the new `RegisterPluralSpec` function to register all defined
languages. This allows the usage of language identifiers which are not
part of the Unicode CLDR standard.

Closes #3564
i18n/i18n_test.go
i18n/translationProvider.go