mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-10 04:22:27 +10:00
fix(i18n): add missing languages to dayjs date wrapper locales
fix #719
This commit is contained in:
@ -10,7 +10,9 @@ const DateWrapper: React.FC = ({ children }) => {
|
||||
dayjs.extend(relativeTime);
|
||||
|
||||
// Locales
|
||||
require('dayjs/locale/ar');
|
||||
require('dayjs/locale/bn');
|
||||
require('dayjs/locale/da');
|
||||
require('dayjs/locale/de');
|
||||
require('dayjs/locale/en');
|
||||
require('dayjs/locale/es');
|
||||
@ -18,7 +20,9 @@ const DateWrapper: React.FC = ({ children }) => {
|
||||
require('dayjs/locale/hi');
|
||||
require('dayjs/locale/it');
|
||||
require('dayjs/locale/kn');
|
||||
require('dayjs/locale/pl');
|
||||
require('dayjs/locale/ta');
|
||||
require('dayjs/locale/tr');
|
||||
require('dayjs/locale/zh');
|
||||
|
||||
locale && dayjs.locale(locale);
|
||||
|
||||
Reference in New Issue
Block a user