Skip to content

Add callbacks for listening to new locale loads in TranslationManager #2704

Open
@me4502

Description

@me4502

The Problem

Platforms, such as Paper, provide server-side translation registries that allow adding translation keys to text that plugins cannot control. These require registering translation strings to these registries. As our system loads locales on demand, we currently cannot do this without force-loading all locales.

A Solution

If we add callback listeners that run on locale load, we can dynamically register these locales with the platform translation registries as they load.

Alternatives

No response

Anything Else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions