Thanks Marten,
now I'm on your side.
As you said there is no connection between locale and theme.
I misinterpreted that point
by assuming that there is sth. like a fall-back behavior for fetching the "locale-matching message bundle" for themes:
- theme_de_DE.properties
- theme_de.properties
- theme.properties
What solved my issue was to define specific i18n theme properties files and call them additionally when doing a locale switch via parameter:
cool_de.properties
cool_en.properties
/myapp/page?locale=de&theme=cool_de
/myapp/page?locale=en&theme=cool_en
/myapp/page?locale=fr&theme=cool_en (use English theme as fallback for not supported languages)
To add a completely new theme I have to add two i18n properties files, like:
supercool_de.properties
supercool_en.properties
In conclusion: I would be a
cool feature to connect both Interceptors and support fall-back behavior of themes if a specific i18n version does not exist.
Thank you Marten for this excellent support!
Best regards from Stuttgart, Germany,
Martin.