Given a language.json object, returns an instance of
Returns a string with the first character capitalized.
The string to format
Given a string, returns the string with all special characters escaped so that the translation regex see them as special characters.
The string to escape
Returns available languages.
Given a language token, will return whether the language is available.
Given a language token, will attempt to set the current language.
the language token
Sentence in the sourceLanguage
boolean to control direction of translation (e.g. true = sourceLanguage => doggo, false = doggo => sourceLanguage)
Replaces a part from the input and tries to format it with the proper case.
The complete input
The word or sentence to replace the found word or sentence
Generated using TypeDoc