All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.dist.config.FormatSettings.js Maven / Gradle / Ivy

import LegacyDateFormats from "../features/LegacyDateFormats.js";
import { getFormatSettings } from "../InitialConfiguration.js";
import { getFeature } from "../FeaturesRegistry.js";
let formatSettings;
/**
 * Returns the first day of the week from the configured format settings or based on the current locale.
 * @public
 * @returns {Number} 0 (Sunday) through 6 (Saturday)
 */
const getFirstDayOfWeek = () => {
    if (formatSettings === undefined) {
        formatSettings = getFormatSettings();
    }
    return formatSettings.firstDayOfWeek;
};
const legacyDateFormats = getFeature("LegacyDateFormats");
const getLegacyDateCalendarCustomizing = legacyDateFormats ? LegacyDateFormats.getLegacyDateCalendarCustomizing : () => { return []; };
export { getFirstDayOfWeek, getLegacyDateCalendarCustomizing, };
//# sourceMappingURL=FormatSettings.js.map




© 2015 - 2024 Weber Informatics LLC | Privacy Policy