Nested Locale Example
Once a locale goes out of scope, the original culture is restored. This example demonstrates this behavior.
Smartsite SXML | Copy Code |
---|---|
<se:locale culture="en-us" > {locale.getdisplayname()}<br /> <se:locale culture="nl-nl"> {locale.getdisplayname()}<br /> <se:locale culture="fr-fr"> {locale.getdisplayname()}<br /> </se:locale> {locale.getdisplayname()}<br /> </se:locale> {locale.getdisplayname()}<br /> </se:locale> |
Example Result | Copy Code |
---|---|
English (United States)<br /> Dutch (Netherlands)<br /> French (France)<br /> Dutch (Netherlands)<br /> English (United States)<br /> |