File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -1275,7 +1275,13 @@ siteLanguage()
1275
1275
Returns the language ID as an integer.
1276
1276
1277
1277
:typoscript: `siteLanguage("locale") `
1278
- Returns the current locale as a string, for example `en-GB ` or `de-DE `.
1278
+ Returns the current locale as `\TYPO3\CMS\Core\Localization\Locale `.
1279
+ You can call all public methods of the object, for example
1280
+ :typoscript: `siteLanguage("locale").getName() ` returns `en-GB ` or `de-DE `.
1281
+
1282
+ **Note **: In version 12 there was an unintentional breaking change,
1283
+ whereby an object and not a string is returned.
1284
+ A future TYPO3 release may address implementing a shortcut for this.
1279
1285
1280
1286
:typoscript: `siteLanguage("base") `
1281
1287
Returns the configured base URL as a string.
You can’t perform that action at this time.
0 commit comments