Global

Methods

sub(langKey, args, join) → {string|Array}

Utility function for substituting variables into language keys. Examples: sub(Liferay.Language.get('search-x'), ['all']) => 'search all' sub(Liferay.Language.get('search-x'), [all], false) => 'search all'
Parameters:
Name Type Description
langKey string This is the language key used from our properties file
args string Arguments to pass into language key
join string Boolean used to indicate whether to call `.join()` on the array before it is returned. Use `false` if subbing in JSX.
Source:
Returns:
Type
string | Array

Documentation generated by JSDoc 3.6.3 on Tue Feb 08 2022 17:11:07 GMT-0800 (Pacific Standard Time)