Prints the store version's language specification as a two-letter language code.

Description

A language code is a symbol used mostly in technical contexts, which is based on the English or native name of the language. Examples of language codes according to the ISO 639-1 standard:
  • de = German
  • en = English
  • fi = Finnish
The language codes printed by the {CurrentLanguageCode} tag partially deviate from the ISO 639-1 standard, which is why MyCashflow's compatibility with external systems cannot be taken for granted. Issues may occur especially in relation to the following languages:
LanguageOutput language codeISO 639-1
Chinesecnzh
Estonianeeet
Japanesejpja
Swedishsesv

To print a more complex and standard-compliant specification, use the {CurrentLocale} tag.

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 in 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.

escape:

Adds an escape character before quotation marks in the output.

The attribute makes it easier to process the tag-produced content when using JavaScript.

Allowed values:true/false. The default value is false.

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.'