Problem/Motivation
updated
Currently the language of the report uses English as the default language.
The API does indeed support a language parameter: https://github.com/SIWECOS/siwecos-business-layer/blob/develop/routes/ap...
However, a German translation is available.
We'll discuss the localization strategy with the Siwecos core team and come back to this issue.
Comments
Comment #2
hexabinaerComment #3
sanduhrsThe URL has already been changed to only report in English for the time being:
https://git.drupalcode.org/project/siwecos/-/blob/1.0.x/src/SiwecosServi...
The API actually falls back to en if the given language is not available.
Nonetheless I'd want to first discuss what language codes would be possible, and then provide a mapping to what Drupal does.
In Drupal we mostly use two letter language codes, but as always, there are exceptions to the rule ;)
E.g. en, fr, de but also pt-br and zh-hans
Comment #4
hexabinaerComment #6
sanduhrsThe functionality has been added:
https://git.drupalcode.org/project/siwecos/-/blob/1.1.x/src/SiwecosServi...
Giving /en returns English language.
Giving /de returns German language.
Giving anything else returns English language, unless the language identifier has been made available in the meantime.