I'm not quite sure what is happening yet, I couldn't quite work out what the problems were as they seemed quite unreliable. I did have several hunches and this code addresses those issues - and simplifies the way locale is detected. If the problems are still there / repeat than at least we'll have a saner, simpler base to investigate them from with the code in this PR.
I left some debugging in (commented out on the server), in case I do end up getting back to this.
This is an attempt to address some issues with reliability of locale detection. See thread here: https://maptio.slack.com/archives/C01QCQJMS23/p1664869299019229
I'm not quite sure what is happening yet, I couldn't quite work out what the problems were as they seemed quite unreliable. I did have several hunches and this code addresses those issues - and simplifies the way locale is detected. If the problems are still there / repeat than at least we'll have a saner, simpler base to investigate them from with the code in this PR.
I left some debugging in (commented out on the server), in case I do end up getting back to this.