Find a demo here.
Open developer tools (firefox: Ctrl + Shift + i) and go to network tab.
- On page load
- The only language module requested should be base for the en locale.
- Click on houses.
- It should have triggered a request for
modules/houses/lang/en
- It should have triggered a request for
- Change language to es.
- It should have triggered a request for
lang/es
and formodules/houses/lang/es
, since base and houses languages module are both active
- It should have triggered a request for
- Click on cars.
- It should have triggered a request for
modules/cars/lang/en
and formodules/cars/lang/es
, since your locale is es but your fallbackLocale is en.
- It should have triggered a request for