Skip to content
Snippets Groups Projects
Unverified Commit 52b0c766 authored by Nemanja Glumac's avatar Nemanja Glumac Committed by GitHub
Browse files

Remove `user-locale` from settings (#39786)

parent 29917e92
No related branches found
No related tags found
No related merge requests found
......@@ -218,7 +218,6 @@ export const createMockSettings = (
"subscription-allowed-domains": null,
"token-features": createMockTokenFeatures(),
"token-status": null,
"user-locale": null,
version: createMockVersion(),
"version-info": createMockVersionInfo(),
"version-info-last-checked": null,
......
......@@ -203,7 +203,6 @@ interface InstanceSettings {
"show-homepage-xrays": boolean;
"site-uuid": string;
"subscription-allowed-domains": string | null;
"user-locale": string | null;
"uploads-enabled": boolean;
"uploads-database-id": number | null;
"uploads-schema-name": string | null;
......
......@@ -60,9 +60,7 @@ export function validateCronExpression(
export function explainCronExpression(cronExpression: string) {
return cronstrue.toString(cronExpression, {
verbose: false,
locale:
MetabaseSettings.get("user-locale") ||
MetabaseSettings.get("site-locale"),
locale: MetabaseSettings.get("site-locale"),
use24HourTimeFormat: has24HourModeSetting(),
});
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment