Hi,
using this line import translateDate from '@/utils/date-translation' you basically tell JS to import the default exported object from the file and use it under the name translateDate.
What you can do instead is export it as a default like this:
export default function translateDate(date) {
// ....code
}
The other possibility of what you can do in this situation is importing it like this:
import { translateDate } from '@/utils/date-translation'
However if you only have one piece of functionality in there you should go with #1.
More information can be found here.