Klarna.Locale

Version: - string  

Summary

Returns locale used when displaying texts. It is a ISO 639 language code and a ISO 3166-1 alpha-2 country code, e.g. sv_se.

Settings

The value is generated automatically.

Examples

Outputting the template tag

@GetString("Klarna.Locale")

Check if tag has a value

@if(!string.IsNullOrWhiteSpace(GetString("Klarna.Locale"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ string storedTag = GetString("Klarna.Locale"); }

Outputting the template tag

<!--@Klarna.Locale-->

Check if string has a value

<!--@If Defined(@Klarna.Locale)--> Let's output this tag here: <strong><!--@Klarna.Locale--></strong> <!--@EndIf(@Klarna.Locale)-->