This happens because the live preview feature uses the ApiParse module, which parses the content model as-is. mirage-navigation is a MediaWiki message and has the wikitext content model; therefore it will be interpreted as wikitext.
Ideally, a hook would allow overriding in ApiParse.