Documentation
¶
Index ¶
- func Register(c *core.Core) (any, error)
- type Options
- type Service
- func (s *Service) HandleIPCEvents(c *core.Core, msg core.Message) error
- func (s *Service) ServiceStartup(context.Context, application.ServiceOptions) error
- func (s *Service) SetBundle(bundle *i18n.Bundle)
- func (s *Service) SetLanguage(lang string) error
- func (s *Service) Translate(messageID string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Service ¶
Service provides internationalization and localization.
func New ¶
New is the constructor for static dependency injection. It creates a Service instance without initializing the core.Runtime field. Dependencies are passed directly here.
func (*Service) HandleIPCEvents ¶
HandleIPCEvents processes IPC messages, including injecting dependencies on startup.
func (*Service) ServiceStartup ¶
func (s *Service) ServiceStartup(context.Context, application.ServiceOptions) error
ServiceStartup is called when the app starts, after dependencies are injected.
func (*Service) SetLanguage ¶
Click to show internal directories.
Click to hide internal directories.