Constructors
- Since:
- 5.0b HF2
Methods
-
getMessages(propertiesFile)
-
Returns a
Messages
object providing methods to work with values from a common key/value paired messages/properties file.
This method tries to find a messages file with the locale currently selected by the logged in user at first. If no such file was found, a file without any specified locale is searched for.Name Type Description propertiesFile
String the name of the messages file, leaving out the
_<lang>
postfix- See:
Returns:
Type Description Messages the Messages
object holding all the messagesExample
var i18nContext = documentsContext.getI18nContext(); var customMessages = i18nContext.getMessages("customMessages");