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

[stable7] NcDatetimePicker: Make sure all l10n strings are extracted #4273

Merged
merged 1 commit into from Jun 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
18 changes: 18 additions & 0 deletions l10n/messages.pot
Expand Up @@ -152,6 +152,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