About nested lexicon values

Nested lexicon values are cases where, the value of a lexicon key can refer another key in either the same module’s lexicon file, or a different module’s lexicon file. Multiple levels of nesting are supported, as needed. This feature may be most used by Niagara developers who are creating new modules that need lexicons.

The syntax for nested lexicon values is as follows:

{lexicon:moduleName:key (if referencing a key in a different lexicon file), or

{lexicon:key} (if referencing a key in the same lexicon file)

For a multi-level example within the same (module) lexicon file, consider these key=value pairs in the “test” module’s lexicon:

fum.text={lexicon:foe.text} Fum
foe.text={lexicon:fie.text} Foe
fie.text={lexicon:fee.text] Fie
fee.txt=Fee


In the example above, the value for fum.text resolves to “Fee Fie Foe Fum”.

This could be seen in a Px label widget using BFormat scripting syntax: %lexicon(test.fum.text)%