This is a good standalone project for anyone interested.
Right now, map file names are fed to the website-backend from the matchmaking-service, the website-backend does this before it sends to the frontend:
https://github.com/w3champions/website-backend/blob/237cd0821094d6b0fc289262324fd7cbbd5ab103/W3ChampionsStatisticService/Matches/MapName.cs#L9
Then on the frontend, we apply translations to these strings:
|
twistedmeadows: "Twisted Meadows", |
This can lead to some nasty gore on the frontend before we add the translations, and it also means that updating a map (even very minorly) means duplicate names.
The matchmaking-service has access to the metadata of maps, one field is the actual name of the map in text, e.g. "Twisted Meadows", and we can serve this to website-backend, and then pass on after validation checks to the frontend.
This will require a senior dev to make the relevant change to matchmaking service, but the rest can be handled on the open source repos.
This is a good standalone project for anyone interested.
Right now, map file names are fed to the website-backend from the matchmaking-service, the website-backend does this before it sends to the frontend:
https://github.com/w3champions/website-backend/blob/237cd0821094d6b0fc289262324fd7cbbd5ab103/W3ChampionsStatisticService/Matches/MapName.cs#L9
Then on the frontend, we apply translations to these strings:
website/src/locales/en.ts
Line 60 in 3a0df7c
This can lead to some nasty gore on the frontend before we add the translations, and it also means that updating a map (even very minorly) means duplicate names.
The matchmaking-service has access to the metadata of maps, one field is the actual name of the map in text, e.g. "Twisted Meadows", and we can serve this to website-backend, and then pass on after validation checks to the frontend.
This will require a senior dev to make the relevant change to matchmaking service, but the rest can be handled on the open source repos.