Skip to content

Commit

Permalink
Merge pull request #4272 from nextcloud/fix/l10n-datetimepicker
Browse files Browse the repository at this point in the history
NcDatetimePicker: Make sure all l10n strings are extracted
  • Loading branch information
susnux committed Jun 26, 2023
2 parents 09d5a76 + 3680710 commit 9b347a7
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 6 deletions.
18 changes: 18 additions & 0 deletions l10n/messages.pot
Expand Up @@ -158,6 +158,24 @@ msgstr ""
msgid "People & Body"
msgstr ""

msgid "Pick a date"
msgstr ""

msgid "Pick a date and a time"
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
14 changes: 8 additions & 6 deletions src/components/NcDatetimePicker/NcDatetimePicker.vue
Expand Up @@ -170,6 +170,8 @@ export default {
</template>

<script>
import { t } from '../../l10n.js'
import NcTimezonePicker from '../NcTimezonePicker/index.js'
import NcPopover from '../NcPopover/index.js'
import l10n from '../../mixins/l10n.js'
Expand Down Expand Up @@ -327,21 +329,21 @@ export default {
*/
defaultPlaceholder() {
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')
return t('Pick a date and a time')
},
/**
Expand Down

0 comments on commit 9b347a7

Please sign in to comment.