(prev: ILocale, next: ILocale)
| 64 | } |
| 65 | |
| 66 | private notifyLocaleChanged(prev: ILocale, next: ILocale) { |
| 67 | const { SETTING_ID } = this.builtinService.getConstants(); |
| 68 | const notify = { |
| 69 | id: SETTING_ID!, |
| 70 | value: next, |
| 71 | render(value) { |
| 72 | /* istanbul ignore next */ |
| 73 | return <LocaleNotification key={next.id} locale={next.name} />; |
| 74 | }, |
| 75 | }; |
| 76 | if (!this.notificationService.getState().showNotifications) { |
| 77 | this.notificationService.toggleNotification(); |
| 78 | } |
| 79 | this.notificationService.add([notify]); |
| 80 | } |
| 81 | } |
no test coverage detected