()
| 43 | let listeners = new Set<(locale: Locale) => void>(); |
| 44 | |
| 45 | function updateLocale() { |
| 46 | currentLocale = getDefaultLocale(); |
| 47 | for (let listener of listeners) { |
| 48 | listener(currentLocale); |
| 49 | } |
| 50 | } |
| 51 | |
| 52 | /** |
| 53 | * Returns the current browser/system language, and updates when it changes. |
nothing calls this directly
no test coverage detected