Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
me4502 opened this issue Jan 26, 2025 · 0 comments
Open

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

me4502 opened this issue Jan 26, 2025 · 0 comments
Labels
status:pending Pending acceptance or closure. type:feature-request Request for something new

Comments

@me4502
Copy link
Member

me4502 commented Jan 26, 2025

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

@me4502 me4502 added status:pending Pending acceptance or closure. type:feature-request Request for something new labels Jan 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:pending Pending acceptance or closure. type:feature-request Request for something new
Projects
None yet
Development

No branches or pull requests

1 participant