Open LizPrescott opened 4 years ago
Path-based locale is already implemented here, but I think Rails default is the locale as query param. Seems to me that we should be able to handle query params with the service worker. Can we do a quick pairing session when you have a chance so I can better understand the problem?
I think I've managed a fix for this that uses only path-based locale. PR incoming.
Talking with @bhaibel and Chris at their meetup, we want to explore using cookies to indicate locale. Looking at it now.
We needed to temporarily disable internationalization to make fix the offline features. Basically, the locale part of the url was interfering with the service worker router. I believe this can be fixed by forming it as part of the path rather than a query parameter (
\locale
instead of?locale
).