Typescriptify main.js
This commit is contained in:
parent
e033fd2cf3
commit
9a1430a460
22 changed files with 721 additions and 524 deletions
|
@ -3,6 +3,7 @@
|
|||
|
||||
import { LocaleMessagesType } from '../types/I18N';
|
||||
import { LocalizerType } from '../types/Util';
|
||||
import * as log from '../logging/log';
|
||||
|
||||
export function setupI18n(
|
||||
locale: string,
|
||||
|
@ -16,9 +17,6 @@ export function setupI18n(
|
|||
}
|
||||
|
||||
const getMessage: LocalizerType = (key, substitutions) => {
|
||||
// eslint-disable-next-line no-console
|
||||
const log = window?.SignalWindow?.log || console;
|
||||
|
||||
const entry = messages[key];
|
||||
if (!entry) {
|
||||
log.error(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue