2023-04-20 21:23:19 +00:00
|
|
|
// Copyright 2023 Signal Messenger, LLC
|
|
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
|
|
|
import './applyTheme';
|
|
|
|
import { setupI18n } from '../util/setupI18n';
|
|
|
|
|
|
|
|
document.body.classList.add(window.SignalContext.OS.getClassName());
|
|
|
|
if (window.SignalContext.OS.hasCustomTitleBar()) {
|
|
|
|
document.body.classList.add('os-has-custom-titlebar');
|
|
|
|
}
|
|
|
|
|
|
|
|
export const i18n = setupI18n(
|
|
|
|
window.SignalContext.getI18nLocale(),
|
|
|
|
window.SignalContext.getI18nLocaleMessages()
|
|
|
|
);
|
2023-04-21 21:21:55 +00:00
|
|
|
|
|
|
|
window.i18n = i18n;
|