Commit 294a2a70 authored by Katrin Leinweber's avatar Katrin Leinweber

Externalize date picker string

parent 5b23f2b0
<script>
import Pikaday from 'pikaday';
import { parsePikadayDate, pikadayToString } from '~/lib/utils/datetime_utility';
import { __ } from '~/locale';
export default {
name: 'DatePicker',
......@@ -8,7 +9,7 @@ export default {
label: {
type: String,
required: false,
default: 'Date picker',
default: __('Date picker'),
},
selectedDate: {
type: Date,
......
......@@ -4,6 +4,7 @@ import datePicker from '../pikaday.vue';
import toggleSidebar from './toggle_sidebar.vue';
import collapsedCalendarIcon from './collapsed_calendar_icon.vue';
import { dateInWords } from '../../../lib/utils/datetime_utility';
import { __ } from '~/locale';
export default {
name: 'SidebarDatePicker',
......@@ -42,7 +43,7 @@ export default {
label: {
type: String,
required: false,
default: 'Date picker',
default: __('Date picker'),
},
selectedDate: {
type: Date,
......
......@@ -2501,6 +2501,9 @@ msgstr ""
msgid "Data is still calculating..."
msgstr ""
msgid "Date picker"
msgstr ""
msgid "Debug"
msgstr ""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment