Skip to content

Commit

Permalink
#131 Resolves a naming convention issue in i18n.js - imports necessar…
Browse files Browse the repository at this point in the history
…y eIcon element
  • Loading branch information
BeneRichi committed Feb 7, 2023
1 parent 99c87cf commit 7500e2b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/components/c-date-picker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
<script>
import Pikaday from 'pikaday';
import eDate from '@/components/e-date';
import eIcon from '@/elements/e-icon.vue';
/**
* Renders a date picker element.
Expand All @@ -70,6 +71,7 @@
components: {
eDate,
eIcon
},
// mixins: [],
Expand Down
5 changes: 4 additions & 1 deletion src/components/e-date.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,17 @@

<script>
import getLocalizedDateFormat from '@/helpers/get-localized-date-format';
import eIcon from '@/elements/e-icon.vue';
/**
* Renders a date styled input.
*/
export default {
name: 'e-date',
// components: {},
components: {
eIcon
},
// mixins: [],
model: {
Expand Down
2 changes: 1 addition & 1 deletion src/setup/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const i18n = new VueI18n({
warnHtmlInMessage: process.env.NODE_ENV !== 'production' ? 'error' : 'off',
dateTimeFormats: {
[I18N_FALLBACK]: dateTimeFormats,
[pageLang]: dateTimeFormats,
[PAGE_LANG]: dateTimeFormats,
},

/**
Expand Down

0 comments on commit 7500e2b

Please sign in to comment.