Skip to content

Commit

Permalink
Fix translation of placeholder of NcDatetimePicker
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Hartmann <chris-hartmann@gmx.de>
  • Loading branch information
Chartman123 committed Sep 8, 2022
1 parent 82a4e03 commit a5056f4
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 5 deletions.
15 changes: 15 additions & 0 deletions l10n/messages.pot
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,21 @@ msgstr ""
msgid "People & Body"
msgstr ""

msgid "Pick a date"
msgstr ""

msgid "Pick a month"
msgstr ""

msgid "Pick a time"
msgstr ""

msgid "Pick a week"
msgstr ""

msgid "Pick a year"
msgstr ""

msgid "Pick an emoji"
msgstr ""

Expand Down
10 changes: 5 additions & 5 deletions src/components/NcDatetimePicker/NcDatetimePicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -314,19 +314,19 @@ export default {
*/
defautlPlaceholder() {
if (this.type === 'time') {
return this.t('Pick a time')
return t('Pick a time')
}
if (this.type === 'month') {
return this.t('Pick a month')
return t('Pick a month')
}
if (this.type === 'year') {
return this.t('Pick a year')
return t('Pick a year')
}
if (this.type === 'week') {
return this.t('Pick a week')
return t('Pick a week')
}
if (this.type === 'date') {
return this.t('Pick a date')
return t('Pick a date')
}
return this.t('Pick a date and a time')
},
Expand Down

0 comments on commit a5056f4

Please sign in to comment.