Configuration

RiotQuest is made to be simple, and does therefore not have a lot of settings.

Currently you are only able to change the current locale and which static data plugin you wish to use.

Setting the Locale

RiotQuest allows you to change the locale for static data. The default locale is en_US. You can change the locale like this:

RiotQuest\Client::setLocale($locale);

The list of supported locales can be found at the Static Data page.

Setting the Provider Plugin (Experimental)

RiotQuest uses a plugin-like system for dealing with static data. This feature is not documented and is not for production use. You can change the provider like this.

// Suppose our plugin is in the Vendor\MyPlugin class.
RiotQuest\Client::setProvider(Vendor\MyPlugin::class);