Closed Gabixel closed 1 year ago
The error message does indeed come from web and will indeed use the language chosen web-side. Not sure how to proceed here, maybe the client language and the website language should sync up at some point.
This won't be specific to this one case either, I imagine this will happen every time that user-readable errors from web are displayed on the client UI.
Or, alternatively, let osu!web provide the key to the localisable string for the client to identify. Might be easier if feasible.
Actually I forgot that a somewhat typical method to do something like this is sending an Accept-Language
header from the client and letting web handle it to return the proper translated message.
Agree that is the easiest / best direction initially.
Describe the bug: The "You have too many favourited beatmaps" notification seems to ignore the selected in-game language. I guess the message is retrieved from the request to favourite a beatmap, which uses the website language for the response (edit: confirmed after checking the
network.log
file). It's not really an issue, but seeing two different languages at the same time might seem wrong.In the example below, both notifications were triggered while the language in-game was
English
.English
.Italian
.At the moment I don't remember if there are other similar requests/notifications, so I'll just keep the scope of this issue on this specific case.
Screenshots or videos showing encountered issue:
osu!lazer version:
2021.907.0