Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically use Nextcloud translated months, days and years #2397

Merged
merged 1 commit into from
Dec 16, 2021

Conversation

skjnldsv
Copy link
Contributor

@skjnldsv skjnldsv commented Dec 9, 2021

First step towards properly defined translations.

The only thing missing is translating nice strings in the input, for that we need to use the formatter prop with moment, so far this can be done in the app directly:

https://github.com/mengxiong10/vue2-datepicker/tree/v3.10.0#formatter

formatter: {
    stringify: (date) => {
        return date ? moment(date).format('LL') : ''
    },
},

Supersede: #146

@skjnldsv skjnldsv self-assigned this Dec 9, 2021
@skjnldsv skjnldsv added 3. to review Waiting for reviews enhancement New feature or request feature: datepicker Related to the date/time picker component labels Dec 9, 2021
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
@skjnldsv skjnldsv merged commit 987b0b1 into master Dec 16, 2021
@skjnldsv skjnldsv deleted the feat/datepcker-lang branch December 16, 2021 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews enhancement New feature or request feature: datepicker Related to the date/time picker component
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants