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 committed Nov 27, 2024
1 parent a0f888d commit 9f106d7
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 @@ -1258,7 +1258,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 @@ -1292,8 +1292,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 9f106d7

Please sign in to comment.