npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@ubuligan/mui-calendar-weekdays-rename

v1.0.2

Published

TypeScript utility to change weekday names in Material-UI DayPicker / CalendarPicker headers with configurable selectors.

Readme

MUI Calendar Weekday Rename

npm version TypeScript MIT License

Solves a critical MUI limitation: Material-UI's DayPicker and CalendarPicker components don't provide built-in localization for weekday headers, making it difficult to customize weekday names for different languages or formats.

A lightweight TypeScript utility that dynamically changes weekday names in Material-UI DayPicker/CalendarPicker headers with configurable selectors.

🎯 Problem This Solves

Material-UI's calendar components have a significant limitation:

  • No built-in weekday localization for DayPicker/CalendarPicker headers
  • Fixed English abbreviations (Sun, Mon, Tue, etc.) that can't be easily customized
  • Limited internationalization support for weekday display
  • No straightforward API to modify weekday labels without complex workarounds

This utility provides a simple, reliable solution to customize weekday names in MUI calendar components.

🚀 Installation

npm install @ubuligan/mui-calendar-weekdays-rename

📖 Usage

Basic Usage (Azerbaijani weekdays by default)

import { weekDayNameChanger } from "@ubuligan/mui-calendar-weekdays-rename";

// Apply default Azerbaijani weekday names
weekDayNameChanger();
// Result: ["B.e.", "Ç.a.", "Ç.", "C.a.", "C.", "Ş.", "B."]

Custom Weekdays

// English short names
weekDayNameChanger({
  weekdays: ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"],
});

// Turkish weekdays
weekDayNameChanger({
  weekdays: ["Pzt", "Sal", "Çar", "Per", "Cum", "Cmt", "Paz"],
});

// Numbers
weekDayNameChanger({
  weekdays: ["1", "2", "3", "4", "5", "6", "7"],
});

Custom Selectors

// For custom calendar implementations
weekDayNameChanger({
  weekdays: ["Mo", "Tu", "We", "Th", "Fr", "Sa", "Su"],
  headerSelector: ".custom-calendar-header",
  columnSelector: ".custom-day-header",
});

⚙️ API Reference

weekDayNameChanger(options?)

| Parameter | Type | Default | Description | | ---------------- | ---------- | -------------------------------------------------- | ---------------------------------------------- | | weekdays | string[] | ["B.e.", "Ç.a.", "Ç.", "C.a.", "C.", "Ş.", "B."] | Array of 7 weekday names starting from Sunday | | headerSelector | string | ".MuiDayPicker-header" | CSS selector for the calendar header container | | columnSelector | string | 'span[role="columnheader"]' | CSS selector for individual weekday columns |

🔧 How It Works

  1. DOM Targeting: Uses requestAnimationFrame to ensure DOM is ready
  2. Flexible Selectors: Configurable CSS selectors for different MUI versions
  3. Accessibility: Updates both textContent and aria-label attributes
  4. Non-intrusive: Doesn't modify MUI components directly

🌍 Supported Languages

While you can use any custom weekday names, here are some common examples:

// Azerbaijani (default)
["B.e.", "Ç.a.", "Ç.", "C.a.", "C.", "Ş.", "B."][
  // English
  ("Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat")
][
  // Turkish
  ("Paz", "Pzt", "Sal", "Çar", "Per", "Cum", "Cmt")
][
  // German
  ("So", "Mo", "Di", "Mi", "Do", "Fr", "Sa")
][
  // French
  ("Dim", "Lun", "Mar", "Mer", "Jeu", "Ven", "Sam")
];

You can phrase it in English like this for documentation or README purposes:

"It can be used like this:"

<DatePicker
  onOpen={weekDayNameChanger}
/>

Or more descriptive:

"The utility can be applied by passing it to the onOpen prop of DatePicker:"

<DatePicker
  onOpen={weekDayNameChanger}
/>

If you want, I can rewrite the full npm package description including this usage example in clean, professional English.

🔗 MUI Compatibility

Compatible with:

  • Material-UI v4.x DayPicker
  • Material-UI v5.x DatePicker
  • MUI X DatePicker components
  • Custom calendar implementations using similar DOM structure

📝 License

MIT © Javid Salimov

🐛 Issues & Contributions


Note: This utility specifically addresses the weekday header customization limitation in MUI calendar components, providing a clean solution where the framework falls short.