Nemanja Karadzic

I'm piling them up, and will open in the end of the day 🙂

kinglozzer

I’m not sure… as far as I’m aware, admin uses /admin/graphql, not /graphql

kinglozzer

@Nemanja Karadzic Looks like the endpoint is specifically marked as being part of the CMS: https://github.com/tractorcow-farm/silverstripe-fluent/blob/98f09213eeeac3fc11663037e402ebbd007928a1/src/Middleware/InitStateMiddleware.php#L23-L32

Show 1 attachment(s)
GitHub  
tractorcow-farm/silverstripe-fluent

Multi-language translate module for Silverstripe, without having to manage separate site trees. - tractorcow-farm/silverstripe-fluent

Hide attachment content
Nemanja Karadzic

hm... this is strange... when calling /graphqlendpoint, Fluent's DetectLocaleMiddleware checks for FluentLocale_CMS key...

kinglozzer

Although if you’re using domain-based locales, I think that should happen automatically

kinglozzer

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?