AvailableLanguages
Last updated
Was this helpful?
Last updated
Was this helpful?
AvailableLanguage
yields a list of all enabled languages in the project (see ). You can access its specific items using the index-indicator.
The languages found in this list can for example be used in the "Change language" process node.
This function is SQL compatible. For more information about SQL compatibility, see our .
Returns a list of available languages by their language code.
Underscore or Hyphen
The Language Code or Keyword is used with underscore and no doublequotes:
nl_NL
or en_US
The Language as a value, as displayed on a page or used as a text-parameter, uses a hyphen: "nl-NL" or "en-US" (doublequotes in expression as text) or nl-NL / en-US as plain values on page.
AvailableLanguages
AvailableLanguages
=> all enabled languages, like:
en_US, nl_NL, cs_CZ, da_DK, en_GB, de_DE, it_IT, pt_PT
=> If directly displayed on page as a string, it will display as:
en-US, nl-NL, cs-CZ, da-DK, en-GB, de-DE, it-IT, pt-PT
AvailableLanguages(i)
AvailableLanguages(
1
)
=> en_US (first language from all enabled languages); en-US when displayed on page
AvailableLanguages(
4)
=> da_DK (fourth language from all enabled languages); da-DK when displayed on page
AvailableLanguages(
100)
=> unknown: index is beyond the number of available languages.