mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +00:00
chore(date-picker): only modify if locale is "en"
This commit is contained in:
parent
0d317671b0
commit
ac0c54943c
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ function updateMonthNode(instance) {
|
||||||
function createCalendar({ options, base, input, dispatch }) {
|
function createCalendar({ options, base, input, dispatch }) {
|
||||||
let locale = options.locale;
|
let locale = options.locale;
|
||||||
|
|
||||||
if (l10n.en) {
|
if (options.locale === 'en' && l10n && l10n.en) {
|
||||||
l10n.en.weekdays.shorthand.forEach((_, index) => {
|
l10n.en.weekdays.shorthand.forEach((_, index) => {
|
||||||
const shorthand = _.slice(0, 2);
|
const shorthand = _.slice(0, 2);
|
||||||
l10n.en.weekdays.shorthand[index] = shorthand === 'Th' ? 'Th' : shorthand.charAt(0);
|
l10n.en.weekdays.shorthand[index] = shorthand === 'Th' ? 'Th' : shorthand.charAt(0);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue