Skip to content

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

Merged
Kenshiin13 merged 2 commits into
esx-framework:devfrom
Kenshiin13:fix-locale
Jan 19, 2025
Merged

feat(es_extended/locale): add support for lazy loading locales#1598
Kenshiin13 merged 2 commits into
esx-framework:devfrom
Kenshiin13:fix-locale

Conversation

@Kenshiin13

@Kenshiin13 Kenshiin13 commented Jan 19, 2025

Copy link
Copy Markdown
Contributor

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
@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