GrafiteInc / CMS

Decoupled CMS for any Laravel app, gain control of: pages, blogs, galleries, events, images, custom modules and more.
https://cms.grafite.ca
MIT License
495 stars 104 forks source link

multi language does not run : language always 'en' #186

Closed khyoz closed 5 years ago

khyoz commented 5 years ago

Describe the bug findPagesByURL always takes care about app()->getLocale() but this always returns 'en' the getEntitiesByTypeAndLang (from TranslationRepository) is never called for pages for example, and findByEntityId always returns the first item.

Expected behavior When default language is 'fr" the page with language 'fr' should be displayed

khyoz commented 5 years ago

ok... after several more tests, it was my mistake, all seems ok about this point. I close this ticket.