Skip to content

Fix decoder bug

Compare
Choose a tag to compare
@ChristophP ChristophP released this 07 May 20:21
· 98 commits to master since this release

This patch fixes a bug that existed in the decoder for the translation files. The namespace was cleared for all nested keys expect the first one.
With the bug a JSON file like this :

{
  "a": {
    "b": "hello",
    "c": "bye"
  }
}

was decoded into Dict.fromList [("a.b","Hello"),("c","bye")] instead of Dict.fromList [("a.b","Hello"),("b.c","bye")].

Decoding now works properly for all nested keys.