Skip to content

A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!

fix(i18n): add missing languages to dayjs date wrapper locales

Amruth Pillai9e6dafc8cada
diff --git a/client/wrappers/DateWrapper.tsx b/client/wrappers/DateWrapper.tsx
index e26f2065a..24c26a5f7 100644
--- a/client/wrappers/DateWrapper.tsx
+++ b/client/wrappers/DateWrapper.tsx
@@ -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);