Create a translation controller, optionally passing in a room to connect it with player names for quick chat messages.
The room to connect the translation controller to.
Format a translation string containing {X} templating. Also substitutes player names if the translation controller is connected to a room in the constructor.
The string to format against.
The elements to format the string with.
The language of the string.
The formatted string.
Get the translation string of a cosmetic.
The ID of the cosmetic to get the name of.
The language to translate the cosmetic name into.
The cosmetic name as translated into the given language.
Get the single translation of a string.
The string name to get.
The language to translate the string name to.
The translated string, or an empty string if an invalid string name was passed.
Synthesise a quick chat message into a single string, considering translations and player names.
The message to synthesise.
The language to synthesise the message into.
The synthesised message.
Generated using TypeDoc
Represents a controller for a room to handle translations.