mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-18 05:25:40 +09:00
8 lines
273 B
TypeScript
8 lines
273 B
TypeScript
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
import {getDateFormatter} from '@fluxer/date_utils/src/DateFormatterCache';
|
|
|
|
export function localeUses12Hour(locale: string): boolean {
|
|
return getDateFormatter(locale, {hour: 'numeric'}).resolvedOptions().hour12 === true;
|
|
}
|