Class: Locale

Strings~ Locale


new Locale()

Base locale class that stores strings for a single locale.
Source:

Members


fillOne

Empty string to replace with passed data.
Source:

username

The bot's username.
Source:

Methods


get(key [, rep])

Get string with given key and replace placeholders.
This:
  • {Locale}
Parameters:
Name Type Argument Description
key string Key of string to lookup.
rep string <optional>
<repeatable>
Placeholder replacement strings.
Source:
Returns:
String with replaced placeholders, or key if unable to find.
Type
sstring

getRaw(key)

Get get the raw data from the locale file at the given key.
This:
  • {Locale}
Parameters:
Name Type Description
key string Key of string to lookup.
Source:
Returns:
Data from locale file, or null if unable to find.
Type
string | Array.<string>