PocketLang
For an example implementation of using the PocketLang
class, let's extend our PocketConfig
example. A PocketLang
instance is created with a reference to the plugin and our previously created config instance.
For every language that is added an own configuration file for it is registered at lang/<language>
. A default version in the classpath is required in this case.
Initialization can be run with an optional parameter to override the default language value en
(for English).
Last updated