lang/i18n: Fix for language code case issue with pt-br etc.

Fixes #7804
This commit is contained in:
Bjørn Erik Pedersen 2020-10-09 10:00:50 +02:00
parent 49972d0792
commit 506820435c
6 changed files with 77 additions and 8 deletions

View file

@ -152,7 +152,7 @@ func TestTransform(t *testing.T) {
// The transformed file should only be published if RelPermalink
// or Permalink is called.
n := htesting.RandIntn(3)
n := htesting.Rnd.Intn(3)
shouldExist := true
switch n {
case 0: