Skip to content

Conversation

@7amed3li
Copy link
Contributor

Closes #620

Added an optional force param to setLocalLang. If set to true, it returns getLocalLang() immediately, which updates CONSTANTS.LANG_UPDATED.

This saves us from having to call getLocalLang() manually right after setting the language. Added tests to cover this.

@changeset-bot
Copy link

changeset-bot bot commented Jan 31, 2026

🦋 Changeset detected

Latest commit: a4e8f85

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@nodesecure/i18n Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@7amed3li 7amed3li force-pushed the feat/i18n-force-option branch from cc6aa93 to 3fba6a5 Compare January 31, 2026 19:56
@7amed3li 7amed3li force-pushed the feat/i18n-force-option branch from 3fba6a5 to a4e8f85 Compare January 31, 2026 19:58
@fraxken fraxken requested a review from clemgbld January 31, 2026 20:12
@fraxken fraxken merged commit 442b364 into NodeSecure:master Jan 31, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

(i18n) setLocalLang option to return getLocalLang

3 participants