|
@ -1,7 +1,7 @@ |
|
|
import * as currencies from '@dinero.js/currencies'; |
|
|
import * as currencies from '@dinero.js/currencies'; |
|
|
import { DataSource } from '@prisma/client'; |
|
|
import { DataSource } from '@prisma/client'; |
|
|
import { getDate, getMonth, getYear, parse, subDays } from 'date-fns'; |
|
|
import { getDate, getMonth, getYear, parse, subDays } from 'date-fns'; |
|
|
import { de, it } from 'date-fns/locale'; |
|
|
import { de, it, nl } from 'date-fns/locale'; |
|
|
|
|
|
|
|
|
import { ghostfolioScraperApiSymbolPrefix, locale } from './config'; |
|
|
import { ghostfolioScraperApiSymbolPrefix, locale } from './config'; |
|
|
import { Benchmark } from './interfaces'; |
|
|
import { Benchmark } from './interfaces'; |
|
@ -77,6 +77,8 @@ export function getDateFnsLocale(aLanguageCode: string) { |
|
|
return de; |
|
|
return de; |
|
|
} else if (aLanguageCode === 'it') { |
|
|
} else if (aLanguageCode === 'it') { |
|
|
return it; |
|
|
return it; |
|
|
|
|
|
} else if (aLanguageCode === 'nl') { |
|
|
|
|
|
return nl; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
return undefined; |
|
|
return undefined; |
|
|