DefaultMessagesFactory

@InterfacedService(acceptMultiple = false)
interface DefaultMessagesFactory(source)

Factory for DefaultMessages instances, using locales from various sources.

Usage: Register your instance as a service with @BService or any annotation that enables your class for dependency injection.

See also

@InterfacedService

Functions

Link copied to clipboard
abstract fun get(locale: Locale): DefaultMessages

Retrieves a DefaultMessages instance for the given locale.

Retrieves a DefaultMessages instance, with the locale derived from this event.

abstract fun get(event: Interaction): DefaultMessages

Retrieves a DefaultMessages instance, with the locale derived from this interaction.