Methods
process(str, doCapitalizeFirstLetteropt, depthopt) → {string}
Processes the input string by replacing all hot strings with their translations.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
str |
string | The string to process. |
||
doCapitalizeFirstLetter |
boolean |
<optional> |
false | Whether to capitalize the first letter of the processed string. |
depth |
number |
<optional> |
10 | The maximum recursion depth to prevent infinite loops. |
- Source:
- See:
Returns:
- The processed string with all hot strings replaced by their translations or the original string if no replacements were made.
- Type
- string
setup(langKey)
Sets the language key to use for translations.
If no key is provided, it will try to get the key from the URL.
Parameters:
Name | Type | Description |
---|---|---|
langKey |
string | The language key to use for translations. |
- Source:
- See: