kalxas on master
Update requirement.txt (#894) … (compare)
lang=
instead of l=
?
load_plugin
can call all kinds of plugins, I thought it would be best to at least have that locale passed on to all plugins.
l
query param or Accept-Language
header) to the plugin, as the plugin might support other locale(s) than pygeoapi itself
@GeoSander can we go with
lang=
instead ofl=
?
I prefer lang
too actually, but went with what @pvgenuchten suggested ;)
maybe we can just take the second as the default? So the first one would become no longer valid?
I'd be happy to implement it like that (and keep the code a bit cleaner), but I thought it might be safer to have it support both for a while, as to not break any existing setups and not force people to use a multilingual configuration
is the core driver of this PR multilingual for the UI or the pure JSON API?
Both
Content-Language
header that matches the provider locale, if available. If the provider does not support locales, no Content-Language
header is set.