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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 208 additions and 14 deletions

View file

@ -9,6 +9,7 @@ const { usernames } = require('@signalapp/libsignal-client');
const { Crypto } = require('../ts/context/Crypto');
const { setEnvironment, Environment } = require('../ts/environment');
const { HourCyclePreference } = require('../ts/types/I18N');
chai.use(chaiAsPromised);
@ -35,6 +36,7 @@ global.window = {
put: async (key, value) => storageMap.set(key, value),
},
getPreferredSystemLocales: () => ['en'],
getHourCyclePreference: () => HourCyclePreference.UnknownPreference,
};
// For ducks/network.getEmptyState()