TUM-Dev/Campus-Android

[Feature] Navigation API Translation

CommanderStorm opened this issue · 1 comments

Is your feature request related to a problem? Please describe.
During the development of #1462 (more precicely in #1462 (comment)) we noticed, that the navigaTUM API is not localised and thus decided that hacks like

private fun getTranslationForPropertyTitle(title: String): String {
are needed

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.

Describe alternatives you've considered
There are no alternatives 😉

Additional context
The API Documentation is availiable at https://nav.tum.sexy/api

ctsk commented

I stumbled upon this today! Will work on it later. This leads to some location properties not being "translated" properly, aswell as mismatched naming of things in the app vs on nav.tum.sexy