2023-01-03 19:55:46 +00:00
|
|
|
// Copyright 2020 Signal Messenger, LLC
|
2021-08-03 14:28:45 +00:00
|
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
2021-09-17 22:12:58 +00:00
|
|
|
import { contextBridge } from 'electron';
|
2023-04-20 21:23:19 +00:00
|
|
|
import { config } from '../../context/config';
|
|
|
|
import { localeMessages } from '../../context/localeMessages';
|
2021-08-03 14:28:45 +00:00
|
|
|
|
2023-04-20 21:23:19 +00:00
|
|
|
contextBridge.exposeInMainWorld('SignalContext', {
|
|
|
|
getI18nLocale: () => config.resolvedTranslationsLocale,
|
|
|
|
getI18nLocaleMessages: () => localeMessages,
|
|
|
|
});
|