Skip to content

Commit 9b347a7

Browse files
authored
Merge pull request #4272 from nextcloud/fix/l10n-datetimepicker
NcDatetimePicker: Make sure all l10n strings are extracted
2 parents 09d5a76 + 3680710 commit 9b347a7

File tree

2 files changed

+26
-6
lines changed

2 files changed

+26
-6
lines changed

l10n/messages.pot

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,24 @@ msgstr ""
158158
msgid "People & Body"
159159
msgstr ""
160160

161+
msgid "Pick a date"
162+
msgstr ""
163+
164+
msgid "Pick a date and a time"
165+
msgstr ""
166+
167+
msgid "Pick a month"
168+
msgstr ""
169+
170+
msgid "Pick a time"
171+
msgstr ""
172+
173+
msgid "Pick a week"
174+
msgstr ""
175+
176+
msgid "Pick a year"
177+
msgstr ""
178+
161179
msgid "Pick an emoji"
162180
msgstr ""
163181

src/components/NcDatetimePicker/NcDatetimePicker.vue

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,8 @@ export default {
170170
</template>
171171

172172
<script>
173+
import { t } from '../../l10n.js'
174+
173175
import NcTimezonePicker from '../NcTimezonePicker/index.js'
174176
import NcPopover from '../NcPopover/index.js'
175177
import l10n from '../../mixins/l10n.js'
@@ -327,21 +329,21 @@ export default {
327329
*/
328330
defaultPlaceholder() {
329331
if (this.type === 'time') {
330-
return this.t('Pick a time')
332+
return t('Pick a time')
331333
}
332334
if (this.type === 'month') {
333-
return this.t('Pick a month')
335+
return t('Pick a month')
334336
}
335337
if (this.type === 'year') {
336-
return this.t('Pick a year')
338+
return t('Pick a year')
337339
}
338340
if (this.type === 'week') {
339-
return this.t('Pick a week')
341+
return t('Pick a week')
340342
}
341343
if (this.type === 'date') {
342-
return this.t('Pick a date')
344+
return t('Pick a date')
343345
}
344-
return this.t('Pick a date and a time')
346+
return t('Pick a date and a time')
345347
},
346348
347349
/**

0 commit comments

Comments
 (0)