Skip to content

Fix Datepicker locale#152

Open
mschreiber wants to merge 5 commits into
owntracks:mainfrom
mschreiber:main
Open

Fix Datepicker locale#152
mschreiber wants to merge 5 commits into
owntracks:mainfrom
mschreiber:main

Conversation

@mschreiber
Copy link
Copy Markdown
Contributor

Dynamically imports the required vue-datepicker locale bundles (e.g., 'de', 'fr', 'en') and assign it to the datepicker component "lang" property. Falls back to 'en' if the browser language is not supported.

Comment thread src/components/AppHeader.vue Outdated
Comment thread src/components/AppHeader.vue Outdated
<div class="nav-item">
<CalendarIcon size="1x" aria-hidden="true" role="img" />
<date-picker
v-if="datePickerLang"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems unnecessary

Comment thread src/components/AppHeader.vue Outdated
Co-authored-by: Linus Groh <mail@linusgroh.de>
Copy link
Copy Markdown
Contributor Author

@mschreiber mschreiber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the review and the suggestions, which make sense!

Copy link
Copy Markdown
Member

@linusg linusg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM though I want to test this locally before merging :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants