Skip to content

Commit

Permalink
fix: fixed locale importing
Browse files Browse the repository at this point in the history
  • Loading branch information
cargovova committed May 18, 2022
1 parent 7c275e8 commit b1c63fc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -55,7 +55,7 @@ Vue.use(VueHmCalendar)
| monthNumber (`only month mode`) | _Number_ | `0-11` |
| hideWeekNames (`only year mode`) | _Boolean_ | `true \| false` |
| locale | _String_ | `'en' \| 'de' \| 'ru'` |
| tooltipTranslation="событий:" | _String_ | `'veranstaltungen:' \| 'событий:'` |
| tooltipTranslation | _String_ | `'veranstaltungen:' \| 'событий:'` |

### Common

Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "vue-hm-calendar",
"version": "2.1.0",
"version": "2.1.1",
"description": "It is a Vue component to create a calendar heatmap",
"main": "dist/vue-hm-calendar.ssr.js",
"browser": "dist/vue-hm-calendar.esm.js",
Expand Down
2 changes: 1 addition & 1 deletion src/vue-hm-calendar.vue
Expand Up @@ -96,7 +96,7 @@ export default {
},
created() {
if (this.locale) {
import('dayjs/locale/' + this.locale)
import(`dayjs/locale/${this.locale}.js`)
.then(() => {
dayjs.locale(this.locale)
})
Expand Down

0 comments on commit b1c63fc

Please sign in to comment.