13 lines
364 B
TypeScript
13 lines
364 B
TypeScript
/*
|
|
* SPDX-FileCopyrightText: syuilo and misskey-project
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
|
|
import type { Locale } from 'i18n';
|
|
|
|
type BootLoaderLocaleBody = Locale['_bootErrors'] & { reload: Locale['reload'] };
|
|
|
|
export function storeBootloaderErrors(locale: BootLoaderLocaleBody) {
|
|
localStorage.setItem('bootloaderLocales', JSON.stringify(locale));
|
|
}
|