diff --git a/src/context/Locale.tsx b/src/context/Locale.tsx
index 72337f24ed98fdfefe463bf6832b74aeddb36626..d49aa6293c1da7068ea109385436619fe3573f54 100644
--- a/src/context/Locale.tsx
+++ b/src/context/Locale.tsx
@@ -195,11 +195,12 @@ function Locale({ children, locale }: Props) {
                     `../../node_modules/dayjs/esm/locale/${target}.js`
                 );
 
+                dayjs.locale(target, dayjs_locale.default);
+
                 if (defn.dayjs) {
                     dayjs.updateLocale(target, { calendar: defn.dayjs });
                 }
 
-                dayjs.locale(target, dayjs_locale.default);
                 setDefinition(defn);
             },
         );