Prints the two-letter language code of the store version.

Description

For example, the {CurrentLanguageCode} tag is used in the html element's lang attribute in the MyCashflow default theme. In this way, it's possible to print on the page the up-to-date information about the language selected in the theme.

Syntax

{CurrentLanguageCode}

Scope

Required scope: globaali

Tags with global scope can be used on any template and in any tag.

Printing language information in the html element

{Doctype}
<html lang="{CurrentLanguageCode}">
<head>
    ...   

In the MyCashflow default theme, language information is printed on the html element by using the {CurrentLanguageCode} tag in its lang attribute.

Printing language information makes it possible to use styles and Javascript commands depending on the selected language, which can be helpful in localizing the store.

Attribuutit

after/before:

By using the after and before attributes you can define content that is output either after or before the tag's output.

Allowed values:The HTML and Interface markup

E.g.

  • before: '<p>Tämä merkkaus näkyy ennen tagin omaa sisältöä.</p>'
  • after: '<p>Tämä taas näkyy tagin oman sisällön jälkeen.</p>'

If the tag does not produce any content, neither the content of the after and before attributes will be output.

or:

Defines alternative content that is displayed if the tag itself does not produce any content.

Allowed values:The HTML and Interface markup

E.g. or:'Sisältöä ei löytynyt.'