mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-20 03:32:09 +10:00
- add multiple languages
- switch from moment to dayjs
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
import moment from 'moment/min/moment-with-locales';
|
||||
import dayjs from 'dayjs';
|
||||
import React, { memo, useContext } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import ReactMarkdown from 'react-markdown';
|
||||
@ -17,7 +17,7 @@ const AwardItem = (x) => {
|
||||
</div>
|
||||
{x.date && (
|
||||
<h6 className="text-xs font-medium text-right">
|
||||
{moment(x.date)
|
||||
{dayjs(x.date)
|
||||
.locale(i18n.language.substr(0, 2))
|
||||
.format('MMMM YYYY')}
|
||||
</h6>
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import moment from 'moment/min/moment-with-locales';
|
||||
import dayjs from 'dayjs';
|
||||
import React, { memo, useContext } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import ReactMarkdown from 'react-markdown';
|
||||
@ -17,7 +17,7 @@ const CertificationItem = (x) => {
|
||||
</div>
|
||||
{x.date && (
|
||||
<h6 className="text-xs font-medium text-right">
|
||||
{moment(x.date)
|
||||
{dayjs(x.date)
|
||||
.locale(i18n.language.substr(0, 2))
|
||||
.format('MMMM YYYY')}
|
||||
</h6>
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import moment from 'moment/min/moment-with-locales';
|
||||
import dayjs from 'dayjs';
|
||||
import React, { memo, useContext } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import ReactMarkdown from 'react-markdown';
|
||||
@ -21,7 +21,7 @@ const ProjectItem = (x) => {
|
||||
</div>
|
||||
{x.date && (
|
||||
<h6 className="text-xs font-medium text-right">
|
||||
{moment(x.date)
|
||||
{dayjs(x.date)
|
||||
.locale(i18n.language.substr(0, 2))
|
||||
.format('MMMM YYYY')}
|
||||
</h6>
|
||||
|
||||
Reference in New Issue
Block a user