mediacube-ui 0.1.140 → 0.1.141

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.1.141](https://github.com/MediaCubeCo/mcui/compare/v0.1.140...v0.1.141) (2023-09-13)
6
+
5
7
  ### [0.1.140](https://github.com/MediaCubeCo/mcui/compare/v0.1.139...v0.1.140) (2023-09-12)
6
8
 
7
9
  ### [0.1.139](https://github.com/MediaCubeCo/mcui/compare/v0.1.138...v0.1.139) (2023-09-12)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mediacube-ui",
3
- "version": "0.1.140",
3
+ "version": "0.1.141",
4
4
  "description": "Design system for Mediacube services",
5
5
  "author": "Mediacube",
6
6
  "private": false,
@@ -412,7 +412,7 @@ export default {
412
412
  methods: {
413
413
  async setupDayjsLocale() {
414
414
  const locale = this.lang !== 'ar' && Object.keys(dayjsLocales).includes(this.lang) ? this.lang : 'en'
415
- await dayjsLocales[locale]()
415
+ await dayjsLocales[locale]?.()
416
416
  this.$dayjs.locale(locale)
417
417
  },
418
418
  handleEmitDate(value) {
@@ -3,7 +3,9 @@ import timezone from 'dayjs/plugin/timezone'
3
3
  import utc from 'dayjs/plugin/utc'
4
4
  import 'dayjs/locale/en'
5
5
 
6
+ // EN have direct import
6
7
  const dayjsLocales = {
8
+ en: () => Promise.resolve(),
7
9
  es: () => import('dayjs/locale/es'),
8
10
  pt: () => import('dayjs/locale/pt'),
9
11
  th: () => import('dayjs/locale/th'),