Hi mindeffects,
Lexicon does also work in the Frontend! I’m also using Babel for a project now with lexicon-keys. Since you’re using Babel, the cultureKey is set
different in each context. You can create your lexicon keys, for example:
Key’s in Namespace babel:
babel.welcome_message (de) = Willkommen
babel.welcome_message (en) = Welcome
In your chunk, use:
[[%babel.welcome_message? &namespace=`babel`]]
Another solution, if you call the same Chunk in different Language-Resources, is to
use Properties:
Property: welcome, Default = Welcome
[[$chunkName? &welcome=`Willkommen`]]
[[$chunkName? &welcome=`Bienvenu`]]
Instead of a fixed value in the Chunk for the Welcome-Message, use the created Placeholder for your Property:
[[+welcome]]