Nested Locale Example

Once a locale goes out of scope, the original culture is restored. This example demonstrates this behavior.

Smartsite SXML CopyCode image 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 CopyCode image Copy Code
English (United States)<br />
    
        Dutch (Netherlands)<br />
        
        French (France)<br />
        
        Dutch (Netherlands)<br />
    
    English (United States)<br />