openzim / zimit-frontend

Zimit Public Web UI
https://zimit.kiwix.org
GNU General Public License v3.0
10 stars 8 forks source link

Identify requests by UI language #94

Open Popolechien opened 1 day ago

Popolechien commented 1 day ago

Since the implementation of i18n it would be interesting to increase the granularity of the logs collected by assigning them to the interface language used for the request (ie, so that we know what Farsi speakers are more likely to try and zim up).

rgaudin commented 1 day ago

For the record (already mentioned this last time it was discussed), I dont think it would be a good indicator because the UI is very simple and the language switch is not persisted. So there's very little intensive to use it (and actual friction) if you understand what it's about.

It think that the locale of the browser is even better than this.

Depending on your actual goal (if you want to explain this better), maybe retrieving the country and/or whether it's a VPN IP (some DBs have this) might be more useful.

rgaudin commented 1 day ago

Persisting the UI is another possibility but I dont think there's much incentive anyway