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

feat(es_extended/locale): add support for lazy loading locales #1598

Merged
merged 2 commits into from
Jan 19, 2025

Conversation

Kenshiin13
Copy link
Contributor

@Kenshiin13 Kenshiin13 commented Jan 19, 2025

Description

This PR updates the existing localization system by introducing lazy loading for locale files. Instead of loading all locales into memory at startup, we now load locale files dynamically during runtime when needed.


Motivation

This change reduces the memory footprint of the core by roughly 30%.


PR Checklist

  • My commit messages and PR title follow the Conventional Commits standard.
  • My changes have been tested locally and function as expected.
  • My PR does not introduce any breaking changes.
  • I have provided a clear explanation of what my PR does, including the reasoning behind the changes and any relevant context.

@Kenshiin13 Kenshiin13 marked this pull request as ready for review January 19, 2025 12:05
@Kenshiin13 Kenshiin13 self-assigned this Jan 19, 2025
@Kenshiin13 Kenshiin13 merged commit 6e3dbc1 into esx-framework:dev Jan 19, 2025
2 checks passed
@Kenshiin13 Kenshiin13 deleted the fix-locale branch January 19, 2025 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Ready for Next Update
Development

Successfully merging this pull request may close these issues.

2 participants