2023-07-27 00:31:52 -05:00
|
|
|
/*
|
|
|
|
* SPDX-FileCopyrightText: syuilo and other misskey contributors
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
*/
|
|
|
|
|
2023-01-01 02:11:33 -06:00
|
|
|
import { lang } from '@/config';
|
|
|
|
|
|
|
|
export const versatileLang = (lang ?? 'ja-JP').replace('ja-KS', 'ja-JP');
|
|
|
|
export const dateTimeFormat = new Intl.DateTimeFormat(versatileLang, {
|
2023-07-27 00:31:52 -05:00
|
|
|
year: 'numeric',
|
|
|
|
month: 'numeric',
|
|
|
|
day: 'numeric',
|
|
|
|
hour: 'numeric',
|
|
|
|
minute: 'numeric',
|
|
|
|
second: 'numeric',
|
2023-01-01 02:11:33 -06:00
|
|
|
});
|
|
|
|
export const numberFormat = new Intl.NumberFormat(versatileLang);
|