Message of the day:
Anything GraphQL and SilverStripe related.
likes GraphQL. The same API, but not the hassle of REST or SOAP
hm... this is strange... when calling
DetectLocaleMiddleware checks for
Although if you’re using domain-based locales, I think that should happen automatically
I wonder if you could add your own middleware which looks for an HTTP header and updates the locale to be used for that request?
no custom code (yet)
@kinglozzer I'm using yaml configuration for serving data to queries
@Nemanja Karadzic I guess you could pass an HTTP header with the locale, then wrap your query resolvers in
Fluent::withLocale() or whatever the equivalent is now?
so no way of saying either graphql or fluent
please serve content in spanish now
Something we will need as well 😅