@LANGUAGE
Sets the language DocuMold will use for the few functions that need it
Usage
Parameters
language |
(Required) The code of the language that DocuMold will use. Must be a text (with quotes |
Examples
More information
Currently supported language codes:
- “en”: English
- “fr”: French
Some functions need a language to know what value to return. Currently, these functions need this:
SPELL_NUMBER
TEXT
: When used with a date and a format that displays a word, such as “mmmm” which means the month’s name.
A @LANGUAGE
action is not needed if the document doesn’t use the few functions that need it. If the function is used,
but the document doesn’t have a @LANGUAGE
action, then the behaviour depends on if you have set the “Document language”
in your profile. If you did, then that language will be used. If not, then an error will be reported.
If you work on documents that are in different languages, then it is recommended not to set the “Document language” in your profile to avoid accidentally generating a document with dates in the wrong language.
The action itself is just removed from the document, same as @..._QUESTION
actions.
The @LANGUAGE
action is usually placed at the end of the document to avoid overwhelming unfamiliar users.
The @IF
action has no effect on the @LANGUAGE
action. The @LANGUAGE
action has an effect even when it is hidden.