Proper Japanese fonts

This commit is contained in:
Josh Perez 2021-12-07 17:36:47 -05:00 committed by GitHub
parent 983477c354
commit d9990c162e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 3 deletions

View file

@ -1,9 +1,11 @@
// Copyright 2015-2021 Signal Messenger, LLC // Copyright 2015-2021 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only // SPDX-License-Identifier: AGPL-3.0-only
$inter: Inter, 'Helvetica Neue', 'Source Sans Pro', 'Source Han Sans SC', $inter: Inter, 'Helvetica Neue', 'Source Sans Pro', 'SF Pro JP',
'Source Han Sans CN', 'Hiragino Sans GB', 'Hiragino Kaku Gothic', 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', メイリオ, Meiryo,
'Microsoft Yahei UI', Helvetica, Arial, sans-serif; ' Pゴシック', 'Source Han Sans SC', 'Source Han Sans CN',
'Hiragino Sans GB', 'Microsoft Yahei UI', 'Helvetica Neue', Helvetica, Arial,
sans-serif;
// -- V3 Colors // -- V3 Colors

View file

@ -500,6 +500,11 @@ export async function startApp(): Promise<void> {
window.document.title = window.getTitle(); window.document.title = window.getTitle();
document.documentElement.setAttribute(
'lang',
window.getLocale().replace('_', '-')
);
KeyChangeListener.init(window.textsecure.storage.protocol); KeyChangeListener.init(window.textsecure.storage.protocol);
window.textsecure.storage.protocol.on('removePreKey', (ourUuid: UUID) => { window.textsecure.storage.protocol.on('removePreKey', (ourUuid: UUID) => {
const uuidKind = window.textsecure.storage.user.getOurUuidKind(ourUuid); const uuidKind = window.textsecure.storage.user.getOurUuidKind(ourUuid);