function onWindowLocale(listener: (locale: string | null) => void): () => void; Calls listener with the window's locale each time the application changes it, until the returned function is called.
onWindowLocale functionfunction onWindowLocale(listener: (locale: string | null) => void): () => void; Calls listener with the window's locale each time the application changes it, until the returned function is called.