Expose i18n globals in SignalContext across all windows

This commit is contained in:
Jamie Kyle
2023-08-07 13:28:09 -07:00
committed by GitHub
parent 55394e17c0
commit 4455328312
13 changed files with 38 additions and 27 deletions

6
ts/window.d.ts vendored
View File

@@ -56,9 +56,7 @@ import type * as Message2 from './types/Message2';
import type { initializeMigrations } from './signal';
import type { RetryPlaceholders } from './util/retryPlaceholders';
import type { PropsPreloadType as PreferencesPropsType } from './components/Preferences';
import type { LocaleDirection } from '../app/locale';
import type { WindowsNotificationData } from './services/notifications';
import type { HourCyclePreference } from './types/I18N';
export { Long } from 'long';
@@ -199,10 +197,6 @@ declare global {
getEnvironment: typeof getEnvironment;
getHostName: () => string;
getInteractionMode: () => 'mouse' | 'keyboard';
getResolvedMessagesLocaleDirection: () => LocaleDirection;
getHourCyclePreference: () => HourCyclePreference;
getResolvedMessagesLocale: () => string;
getPreferredSystemLocales: () => Array<string>;
getServerPublicParams: () => string;
getSfuUrl: () => string;
getSocketStatus: () => SocketStatus;