Move weekday l10n logic into common.js and apply it on the settings page as well