TUM-Dev/Campus-iOS

New NavigaTUM lang parameter for `api/get/:id` and `api/preview/:id`

CommanderStorm opened this issue · 1 comments

Is your feature request related to a problem? Please describe.
During the development of TUM-Dev/Campus-Android#1462 (more precicely in TUM-Dev/Campus-Android#1462 (comment)) we noticed, that the navigaTUM API is not localised and thus decided that hacks like https://github.com/TUM-Dev/Campus-Android/blob/3cf41a78a98c622668dcaf81cbb694a227020033/app/src/main/java/de/tum/in/tumcampusapp/component/tumui/roomfinder/NavigationDetailsFragment.kt#L161 are needed.
I dont know if you are also affected by this.
I am sorry if sloppy reprting is making your live worse, but I sadly dont have a Mac and cannot test if you already use this newer part.

Describe the solution you'd like
NavigaTUM has added the lang cookie/query parameter to translate these APIs.
We should utilize them instead of our homegrown translation.

Duplicate of #489