macOS: Add support for 12/24-hour time display preferences

This commit is contained in:
Jamie Kyle
2023-07-31 09:23:19 -07:00
committed by GitHub
parent 88858af144
commit 1143c0e9ba
17 changed files with 208 additions and 14 deletions

View File

@@ -9,6 +9,7 @@ import type { CreateTemplateOptionsType } from '../../../app/menu';
import { createTemplate } from '../../../app/menu';
import { load as loadLocale } from '../../../app/locale';
import type { MenuListType } from '../../types/menu';
import { HourCyclePreference } from '../../types/I18N';
const forceUpdate = stub();
const openArtCreator = stub();
@@ -198,6 +199,7 @@ const PLATFORMS = [
describe('createTemplate', () => {
const { i18n } = loadLocale({
preferredSystemLocales: ['en'],
hourCyclePreference: HourCyclePreference.UnknownPreference,
logger: {
fatal: stub().throwsArg(0),
error: stub().throwsArg(0),