Skip to content

Commit

Permalink
[BUGFIX] Fix siteLanguage("locale") TypoScript condition example (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
cundd authored Jan 4, 2025
1 parent 691bcdf commit aafbf5f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Documentation/Conditions/Index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1268,7 +1268,7 @@ siteLanguage()
Returns the language ID as an integer.

:typoscript:`siteLanguage("locale")`
Returns the current locale as a string, for example `en_GB` or `de_DE`.
Returns the current locale as a string, for example `en-GB` or `de-DE`.

:typoscript:`siteLanguage("base")`
Returns the configured base URL as a string.
Expand Down Expand Up @@ -1302,8 +1302,8 @@ siteLanguage()
.. code-block:: typoscript
:caption: EXT:site_package/Configuration/TypoScript/setup.typoscript
[siteLanguage("locale") == "de_CH"]
page.10.value = This site has the locale "de_CH"
[siteLanguage("locale") == "de-CH"]
page.10.value = This site has the locale "de_CH" or "de_CH.utf8"
[END]
[siteLanguage("title") == "Italy"]
Expand Down

0 comments on commit aafbf5f

Please sign in to comment.