Skip to content

Still using requestedLocales in torbutton

We're still using Services.locale.requestedLocales in torbutton. Before this was the build locale, but now that we use multi-lingual builds this will be the system locale, rather than the displayed locale. E.g. "es-AG" rather "es-ES".

I found two hits

  1. https://gitlab.torproject.org/tpo/applications/torbutton/-/blob/362c914b5630b30e9608a218880bffa3664693f4/chrome/content/aboutTor/aboutTor-content.js#L68
  2. https://gitlab.torproject.org/tpo/applications/torbutton/-/blob/362c914b5630b30e9608a218880bffa3664693f4/modules/utils.js#L93

I didn't find anything in our tor browser patches.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information