Skip to content

Commit 849bbac

Browse files
committed
chore: remove unused functions
1 parent 234e879 commit 849bbac

1 file changed

Lines changed: 0 additions & 55 deletions

File tree

config/i18n.ts

Lines changed: 0 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -357,61 +357,6 @@ export const currentLocales = buildLocales()
357357

358358
export { lunariaJSONFiles }
359359

360-
export const datetimeFormats = Object.values(currentLocales).reduce((acc, data) => {
361-
const dateTimeFormats = data.dateTimeFormats
362-
if (dateTimeFormats) {
363-
acc[data.code] = { ...dateTimeFormats }
364-
delete data.dateTimeFormats
365-
} else {
366-
acc[data.code] = {
367-
shortDate: {
368-
dateStyle: 'short',
369-
},
370-
short: {
371-
dateStyle: 'short',
372-
timeStyle: 'short',
373-
},
374-
long: {
375-
dateStyle: 'long',
376-
timeStyle: 'medium',
377-
},
378-
}
379-
}
380-
381-
return acc
382-
}, {} as DateTimeFormats)
383-
384-
export const numberFormats = Object.values(currentLocales).reduce((acc, data) => {
385-
const numberFormats = data.numberFormats
386-
if (numberFormats) {
387-
acc[data.code] = { ...numberFormats }
388-
delete data.numberFormats
389-
} else {
390-
acc[data.code] = {
391-
percentage: {
392-
style: 'percent',
393-
maximumFractionDigits: 1,
394-
},
395-
smallCounting: {
396-
style: 'decimal',
397-
maximumFractionDigits: 0,
398-
},
399-
kiloCounting: {
400-
notation: 'compact',
401-
compactDisplay: 'short',
402-
maximumFractionDigits: 1,
403-
},
404-
millionCounting: {
405-
notation: 'compact',
406-
compactDisplay: 'short',
407-
maximumFractionDigits: 2,
408-
},
409-
}
410-
}
411-
412-
return acc
413-
}, {} as NumberFormats)
414-
415360
export const pluralRules = Object.values(currentLocales).reduce((acc, data) => {
416361
const pluralRule = data.pluralRule
417362
if (pluralRule) {

0 commit comments

Comments
 (0)