Skip to content

Commit f32a0ea

Browse files
Refactor Gregorian month names array for improved readability
1 parent 1ed8188 commit f32a0ea

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

src/app/services/islamic-month.service.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,18 @@ export class IslamicMonthService {
266266
// Detect Gregorian fallback — if the Intl API returned a Gregorian month name,
267267
// it means the islamic-umalqura calendar is not supported on this device.
268268
const gregorianMonths = [
269-
'january', 'february', 'march', 'april', 'may', 'june',
270-
'july', 'august', 'september', 'october', 'november', 'december',
269+
'january',
270+
'february',
271+
'march',
272+
'april',
273+
'may',
274+
'june',
275+
'july',
276+
'august',
277+
'september',
278+
'october',
279+
'november',
280+
'december',
271281
];
272282
if (gregorianMonths.includes(n)) {
273283
return ''; // Signal to caller that Intl failed

0 commit comments

Comments
 (0)