Commit graph

5 commits

Author SHA1 Message Date
Jonas Herzig 064dd195c1 Fix loading of localization when browser returns region code
E.g. if the browser returns `de-DE` or `en-US` and we don't have those specific
ones, we want to fall back to `de` and `en` respectively.
2020-05-03 17:34:57 +02:00
Jonas Herzig d6d55c9f9c Do not restrict language codes to two characters
In fact, they may be of 2-8 characters in length according to [BCP 47] 2.2.1.
I do not really see any reason to validate them anyway, and this way we could
also support e.g. `en-US` vs `en-GB`.

[BCP 47]: https://tools.ietf.org/rfc/bcp/bcp47.txt
2020-05-03 17:27:13 +02:00
Jonas Herzig 0ca2a45358 Put webpack in charge of language file copying and loading
And HTTP in charge of caching.
2020-05-03 17:25:02 +02:00
Christian Fraß f93c042adc adjusted authorship 2020-04-04 14:33:48 +02:00
Christian Fraß 1d7bf5a08b logic 2020-04-04 14:10:53 +02:00