diff options
Diffstat (limited to 'packages/frontend-shared/js/store-boot-errors.ts')
| -rw-r--r-- | packages/frontend-shared/js/store-boot-errors.ts | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/packages/frontend-shared/js/store-boot-errors.ts b/packages/frontend-shared/js/store-boot-errors.ts new file mode 100644 index 0000000000..31e6248445 --- /dev/null +++ b/packages/frontend-shared/js/store-boot-errors.ts @@ -0,0 +1,12 @@ +/* + * SPDX-FileCopyrightText: syuilo and misskey-project + * SPDX-License-Identifier: AGPL-3.0-only + */ + +import type { Locale } from '../../../locales/index.js'; + +type BootLoaderLocaleBody = Locale['_bootErrors'] & { reload: Locale['reload'] }; + +export function storeBootloaderErrors(locale: BootLoaderLocaleBody) { + localStorage.setItem('bootloaderLocales', JSON.stringify(locale)); +} |