Skip to content

Adding OsLocaleInfoChangeHandler for os locale info changes#2941

Open
kubayaya wants to merge 2 commits intomainfrom
ravasili/adding_onlocaleinfo_change
Open

Adding OsLocaleInfoChangeHandler for os locale info changes#2941
kubayaya wants to merge 2 commits intomainfrom
ravasili/adding_onlocaleinfo_change

Conversation

@kubayaya
Copy link
Copy Markdown
Contributor

@kubayaya kubayaya commented Dec 9, 2025

Description

Adding OsLocaleInfoChangeHandler when the osLocaleInfo object is changing.

Added new handler type: export type osLocaleInfoHandler
Added helper: export function registerOnOsLocaleInfoChangeHandlerHelper(apiVersionTag: string, handler: (info: LocaleInfo) => void): void
Register function: export function registerOnOsLocaleInfoChangeHandler(apiVersionTag: string, handler: (info: LocaleInfo) => void): void for 'osLocaleInfoChange'.
Initialize routing: [HandlersPrivate.handlers['osLocaleInfoChange'] = handleOsLocaleInfoChange
Event handler: invokes the registered handler and relays to child if needed.
Telemetry tag: adding telemetry

Added [App_RegisterOnOsLocaleInfoChangeHandler = 'app.registerOnOsLocaleInfoChangeHandler']

Main changes in the PR:

  1. Adding OsLocaleInfoChangeHandler when LocaleInfo object is changing.

Unit Tests added:

No testing needed.

@kubayaya kubayaya requested a review from a team as a code owner December 9, 2025 14:12
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Dec 9, 2025

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
packages/teams-js/dist/esm/packages/teams-js/src/index.js 196.21 KB (+0.23% 🔺) 4 s (+0.23% 🔺) 239 ms (+0.92% 🔺) 4.2 s

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.

1 participant