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

feat: input-date: Disclose when date was reverted to previous #5164

Merged
merged 16 commits into from
Nov 27, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 28 additions & 9 deletions components/inputs/input-date.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ class InputDate extends FocusMixin(LabelledMixin(SkeletonMixin(FormElementMixin(
_formattedValue: { type: String },
_inputTextFocusShowTooltip: { type: Boolean },
_showInfoTooltip: { type: Boolean },
_shownValue: { type: String }
_shownValue: { type: String },
_showRevertInstructions: { state: true },
_showRevertTooltip: { state: true }
};
}

Expand Down Expand Up @@ -159,10 +161,11 @@ class InputDate extends FocusMixin(LabelledMixin(SkeletonMixin(FormElementMixin(
this._inputId = getUniqueId();
this._inputTextFocusMouseup = false;
this._inputTextFocusShowTooltip = true; // true by default so hover triggers tooltip
this._namespace = 'components.input-date';
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This uses this._namespace for the lang terms which had come up as being bad practice since it makes searching for lang terms more difficult.
Since I was adding more lang term usage I thought I'd clean this up, but let me know if I shouldn't actually do this or if it's too much noise.

this._openCalendarOnly = false;
this._openedOnKeydown = false;
this._showInfoTooltip = true;
this._showRevertInstructions = false;
this._showRevertTooltip = false;
this._shownValue = '';

this._dateTimeDescriptor = getDateTimeDescriptor();
Expand All @@ -183,11 +186,11 @@ class InputDate extends FocusMixin(LabelledMixin(SkeletonMixin(FormElementMixin(
const minDate = this.minValue ? formatDate(getDateFromISODate(this.minValue), { format: 'medium' }) : null;
const maxDate = this.maxValue ? formatDate(getDateFromISODate(this.maxValue), { format: 'medium' }) : null;
if (minDate && maxDate) {
return this.localize(`${this._namespace}.errorOutsideRange`, { minDate, maxDate });
return this.localize('components.input-date.errorOutsideRange', { minDate, maxDate });
} else if (maxDate) {
return this.localize(`${this._namespace}.errorMaxDateOnly`, { maxDate });
return this.localize('components.input-date.errorMaxDateOnly', { maxDate });
} else if (this.minValue) {
return this.localize(`${this._namespace}.errorMinDateOnly`, { minDate });
return this.localize('components.input-date.errorMinDateOnly', { minDate });
}
}
return super.validationMessage;
Expand Down Expand Up @@ -237,13 +240,20 @@ class InputDate extends FocusMixin(LabelledMixin(SkeletonMixin(FormElementMixin(
const formattedWideDate = formatISODateInUserCalDescriptor('2323-12-23');
const shortDateFormat = (this._dateTimeDescriptor.formats.dateFormats.short).toUpperCase();

const clearButton = !this.required ? html`<d2l-button-subtle text="${this.localize(`${this._namespace}.clear`)}" @click="${this._handleClear}"></d2l-button-subtle>` : null;
const nowButton = this.hasNow ? html`<d2l-button-subtle text="${this.localize(`${this._namespace}.now`)}" @click="${this._handleSetToNow}"></d2l-button-subtle>` : null;
const clearButton = !this.required ? html`<d2l-button-subtle text="${this.localize('components.input-date.clear')}" @click="${this._handleClear}"></d2l-button-subtle>` : null;
const nowButton = this.hasNow ? html`<d2l-button-subtle text="${this.localize('components.input-date.now')}" @click="${this._handleSetToNow}"></d2l-button-subtle>` : null;
const icon = (this.invalid || this.childErrors.size > 0)
? html`<d2l-icon icon="tier1:alert" slot="left" style="${styleMap({ color: 'var(--d2l-color-cinnabar)' })}"></d2l-icon>`
: html`<d2l-icon icon="tier1:calendar" slot="left"></d2l-icon>`;
const errorTooltip = (this.validationError && !this.opened && this.childErrors.size === 0) ? html`<d2l-tooltip align="start" announced for="${this._inputId}" state="error" class="vdiff-target">${this.validationError}</d2l-tooltip>` : null;

const instructions = this.localize('components.input-date.openInstructions', { format: shortDateFormat });
const revertMessageInstructionsTooltip = this.localize('components.input-date.revertWithInstructions', { label: this.label, format: shortDateFormat });
const instructionsMessage = this._showRevertInstructions ? revertMessageInstructionsTooltip : instructions;

const revertMessageRevertTooltip = this.localize('components.input-date.revertWithFormat', { label: this.label, format: shortDateFormat });
const revertTooltip = (this._showRevertTooltip && !this.opened) ? html`<d2l-tooltip align="start" force-show announced class="vdiff-target" for="${this._inputId}">${revertMessageRevertTooltip}</d2l-tooltip>` : null;

const dropdownContent = this._dropdownFirstOpened ? html`
<d2l-dropdown-content
class="vdiff-target"
Expand All @@ -265,7 +275,7 @@ class InputDate extends FocusMixin(LabelledMixin(SkeletonMixin(FormElementMixin(
min-value="${ifDefined(this.minValue)}"
selected-value="${ifDefined(this._shownValue)}">
<div class="d2l-calendar-slot-buttons">
<d2l-button-subtle text="${this.localize(`${this._namespace}.today`)}" @click="${this._handleSetToToday}"></d2l-button-subtle>
<d2l-button-subtle text="${this.localize('components.input-date.today')}" @click="${this._handleSetToToday}"></d2l-button-subtle>
${nowButton}
${clearButton}
</div>
Expand All @@ -277,14 +287,15 @@ class InputDate extends FocusMixin(LabelledMixin(SkeletonMixin(FormElementMixin(
<div>${shortDateFormat}</div>
</div>
${errorTooltip}
${revertTooltip}
<d2l-dropdown ?disabled="${this.disabled || this.skeleton}" no-auto-open ?prefer-fixed-positioning="${this.preferFixedPositioning}">
<d2l-input-text
?novalidate="${this.noValidate}"
aria-invalid="${this.invalid ? 'true' : 'false'}"
@blur="${this._handleInputTextBlur}"
@change="${this._handleChange}"
class="d2l-dropdown-opener vdiff-target"
instructions="${ifDefined((this._showInfoTooltip && !errorTooltip && !this.invalid && this.childErrors.size === 0 && this._inputTextFocusShowTooltip) ? this.localize(`${this._namespace}.openInstructions`, { format: shortDateFormat }) : undefined)}"
instructions="${ifDefined((this._showInfoTooltip && !errorTooltip && !revertTooltip && !this.invalid && this.childErrors.size === 0 && this._inputTextFocusShowTooltip) ? instructionsMessage : undefined)}"
?disabled="${this.disabled}"
@focus="${this._handleInputTextFocus}"
@keydown="${this._handleKeydown}"
Expand Down Expand Up @@ -355,6 +366,7 @@ class InputDate extends FocusMixin(LabelledMixin(SkeletonMixin(FormElementMixin(
}

async _handleChange() {
this._showRevertTooltip = false;
const value = this._textInput.value;
if (!value && !this.required) {
if (value !== this.value) {
Expand All @@ -373,6 +385,7 @@ class InputDate extends FocusMixin(LabelledMixin(SkeletonMixin(FormElementMixin(
await this._updateValueDispatchEvent(formatDateInISO({ year: date.getFullYear(), month: (parseInt(date.getMonth()) + 1), date: date.getDate() }));
} catch {
// leave value the same when invalid input
this._showRevertTooltip = true;
}
this._setFormattedValue(); // keep out here in case parseDate is same date, e.g., user adds invalid text to end of parseable date
if (this._calendar) {
Expand All @@ -390,6 +403,7 @@ class InputDate extends FocusMixin(LabelledMixin(SkeletonMixin(FormElementMixin(
}

async _handleDateSelected(e) {
this._showRevertTooltip = false;
const value = e.target.selectedValue;
await this._updateValueDispatchEvent(value);
if (this._dropdown) {
Expand Down Expand Up @@ -448,9 +462,14 @@ class InputDate extends FocusMixin(LabelledMixin(SkeletonMixin(FormElementMixin(
_handleInputTextBlur() {
this._inputTextFocusMouseup = false;
this._inputTextFocusShowTooltip = true;
this._showRevertInstructions = false;
}

_handleInputTextFocus() {
if (this._showRevertTooltip) {
this._showRevertInstructions = true;
this._showRevertTooltip = false;
}
this._formattedValue = this._shownValue ? formatISODateInUserCalDescriptor(this._shownValue) : '';

// hide tooltip when focus, wait to see if click happened, then show
Expand Down
34 changes: 34 additions & 0 deletions components/inputs/test/input-date.vdiff.js
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,40 @@ describe('d2l-input-date', () => {
await expect(elem).to.be.golden();
});
});

describe('required revert', () => {

let elem;
beforeEach(async() => {
elem = await fixture(create({ label: 'Date', labelHidden: false, required: true, value: '2020-01-01' }));
});

it('delete text input then blur', async() => {
await focusElem(elem);
await sendKeysElem(elem, 'press', 'Backspace');
await sendKeys('press', 'Tab');
await expect(elem).to.be.golden();
});

it('delete text input then blur then re-focus', async() => {
await focusElem(elem);
await sendKeysElem(elem, 'press', 'Backspace');
await sendKeys('press', 'Tab');
await focusElem(elem);
await oneEvent(elem, 'd2l-tooltip-show');
await expect(elem).to.be.golden();
});

it('delete text input then blur then re-focus then blur', async() => {
await focusElem(elem);
await sendKeysElem(elem, 'press', 'Backspace');
await sendKeys('press', 'Tab');
await focusElem(elem);
await oneEvent(elem, 'd2l-tooltip-show');
await sendKeys('press', 'Tab');
await expect(elem).to.be.golden();
});
});
});

describe('skeleton', () => {
Expand Down
2 changes: 2 additions & 0 deletions lang/ar.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@
"components.filter.clearAnnounce": "جارٍ مسح عوامل التصفية لـ: {filterName}",
"components.filter.clearDescription": "مسح عوامل التصفية لـ: {filterName}",
"components.filter.loading": "يتم تحميل عوامل التصفية",
"components.filter.filterCountDescription": "{number, plural, =0 {لم يتم تطبيق عوامل تصفية.} one {تم تطبيق {number} عامل تصفية} ‏other {تم تطبيق {number} من عوامل التصفية.}}",

Check warning on line 24 in lang/ar.js

View workflow job for this annotation

GitHub Actions / Accessibility and Unit Tests

categories components.filter.filterCountDescription
"components.filter.filters": "عوامل التصفية",
"components.filter.noFilters": "ما من عوامل تصفية متوفرة",
"components.filter.searchResults": "{number, plural, =0 {ما من نتائج بحث} one {{number} نتيجة بحث}‏ other {{number} من نتائج البحث}}",

Check warning on line 27 in lang/ar.js

View workflow job for this annotation

GitHub Actions / Accessibility and Unit Tests

categories components.filter.searchResults
"components.filter.selectedFirstListLabel": "{headerText}. تظهر عوامل التصفية المحددة أولاً.",
"components.filter.singleDimensionDescription": "التصفية حسب: {filterName}",
"components.filter-dimension-set-date-text-value.textHours": "{num, plural, =1 {آخر ساعة} other {آخر {num} من الساعات}}",

Check warning on line 30 in lang/ar.js

View workflow job for this annotation

GitHub Actions / Accessibility and Unit Tests

categories components.filter-dimension-set-date-text-value.textHours
"components.filter-dimension-set-date-text-value.textDays": "{num, plural, =0 {يوم} one {آخر {num} يوم} other {آخر {num} من الأيام}}",

Check warning on line 31 in lang/ar.js

View workflow job for this annotation

GitHub Actions / Accessibility and Unit Tests

categories components.filter-dimension-set-date-text-value.textDays
"components.filter-dimension-set-date-text-value.textMonths": "آخر {num} من الأشهر",
"components.filter-dimension-set-date-time-range-value.label": "{text}، التوسيع لاختيار التواريخ",
"components.filter-dimension-set-date-time-range-value.valueTextRange": "{startValue} إلى {endValue}",
Expand All @@ -44,7 +44,7 @@
"components.form-element.input.text.tooShort": "يجب أن تتألف التسمية {label} من {minlength} من الأحرف على الأقل",
"components.form-element.input.url.typeMismatch": "عنوان URL غير صالح",
"components.form-element.valueMissing": "{label} مطلوبة",
"components.form-error-summary.errorSummary": "{count, plural, one {تم العثور على {count} خطأ في المعلومات التي أرسلتها} other {تم العثور على {count} من الأخطاء في المعلومات التي أرسلتها}}",

Check warning on line 47 in lang/ar.js

View workflow job for this annotation

GitHub Actions / Accessibility and Unit Tests

categories components.form-error-summary.errorSummary
"components.form-error-summary.text": "تبديل تفاصيل الخطأ",
"components.input-color.backgroundColor": "لون الخلفية",
"components.input-color.foregroundColor": "لون المقدمة",
Expand All @@ -69,6 +69,8 @@
"components.input-date.errorOutsideRange": "يجب أن يكون التاريخ بين {minDate} و{maxDate}",
"components.input-date.openInstructions": "استخدم تنسيق التاريخ {format}. انتقل إلى الأسفل أو اضغط على Enter للوصول إلى التقويم المصغّر.",
"components.input-date.now": "الآن",
"components.input-date.revertWithFormat": "{label} reverted to previous value. Use date format {format}.",
"components.input-date.revertWithInstructions": "{label} reverted to previous value. Use date format {format}. Arrow down or press enter to access mini-calendar.",
"components.input-date.today": "اليوم",
"components.input-number.hintInteger": "يقبل هذا الحقل قيم الأعداد الصحيحة فقط (بدون أعداد عشرية)",
"components.input-number.hintDecimalDuplicate": "يوجد عدد عشري في هذا الرقم",
Expand Down Expand Up @@ -106,8 +108,8 @@
"components.overflow-group.moreActions": "مزيد من الإجراءات",
"components.pager-load-more.action": "تحميل المزيد",
"components.pager-load-more.action-with-page-size": "تحميل {count} إضافي",
"components.pageable.info": "{count, plural, one {{countFormatted} مادة واحد} other {{countFormatted} من المواد}}",

Check warning on line 111 in lang/ar.js

View workflow job for this annotation

GitHub Actions / Accessibility and Unit Tests

categories components.pageable.info
"components.pageable.info-with-total": "{totalCount, plural, one {{countFormatted} من أصل {totalCountFormatted} مادة واحدة} other {{countFormatted} من أصل {totalCountFormatted} من المواد}}",

Check warning on line 112 in lang/ar.js

View workflow job for this annotation

GitHub Actions / Accessibility and Unit Tests

categories components.pageable.info-with-total
"components.pager-load-more.status-loading": "تحميل المزيد من المواد",
"components.selection.action-hint": "حدد مادة لتنفيذ هذا الإجراء.",
"components.selection.select-all": "تحديد الكل",
Expand Down
2 changes: 2 additions & 0 deletions lang/cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@
"components.filter.clearAnnounce": "Wrthi’n clirio hidlwyr ar gyfer: {filterName}",
"components.filter.clearDescription": "Wrthi’n clirio hidlwyd ar gyfer: {filterName}",
"components.filter.loading": "Wrthi’n llwytho hidlyddion",
"components.filter.filterCountDescription": "{number, plural, =0 {Dim hidlyddion wedi’i gweithredu.} one {{number} hidlydd wedi’i weithredu.} other {{number} hidlyddion wedi’u gweithredu.}}",

Check warning on line 24 in lang/cy.js

View workflow job for this annotation

GitHub Actions / Accessibility and Unit Tests

categories components.filter.filterCountDescription
"components.filter.filters": "Hidlyddion",
"components.filter.noFilters": "Dim hidlyddion ar gael",
"components.filter.searchResults": "{number, plural, =0 {Dim canlyniadau chwilio} one {{number} canlyniad chwilio} other {{number} canlyniadau chwilio}}",

Check warning on line 27 in lang/cy.js

View workflow job for this annotation

GitHub Actions / Accessibility and Unit Tests

categories components.filter.searchResults
"components.filter.selectedFirstListLabel": "{headerText}. Mae'r hidlyddion a ddewiswyd yn ymddangos gyntaf.",
"components.filter.singleDimensionDescription": "Hidlo yn ôl: {filterName}",
"components.filter-dimension-set-date-text-value.textHours": "{num, plural, =1 {Awr ddiwethaf} other {{num} awr ddiwethaf}}",

Check warning on line 30 in lang/cy.js

View workflow job for this annotation

GitHub Actions / Accessibility and Unit Tests

categories components.filter-dimension-set-date-text-value.textHours
"components.filter-dimension-set-date-text-value.textDays": "{num, plural, =0 {Heddiw} one {{num} diwrnod diwethaf} other {{num} o ddiwrnodau diwethaf}}",
"components.filter-dimension-set-date-text-value.textMonths": "{num} o fisoedd diwethaf",
"components.filter-dimension-set-date-time-range-value.label": "{text}, ehangwch i ddewis dyddiadau",
Expand Down Expand Up @@ -69,6 +69,8 @@
"components.input-date.errorOutsideRange": "Rhaid i'r dyddiad fod rhwng {minDate} a {maxDate}",
"components.input-date.openInstructions": "Defnyddio fformat dyddiad {format}. Pwyswch saeth i lawr neu Enter i gael mynediad at galendr bach.",
"components.input-date.now": "Nawr",
"components.input-date.revertWithFormat": "{label} reverted to previous value. Use date format {format}.",
"components.input-date.revertWithInstructions": "{label} reverted to previous value. Use date format {format}. Arrow down or press enter to access mini-calendar.",
"components.input-date.today": "Heddiw",
"components.input-number.hintInteger": "Mae'r maes hwn yn derbyn gwerthoedd cyfanrif yn unig (dim degolion)",
"components.input-number.hintDecimalDuplicate": "Mae degol eisoes yn y nifer hwn",
Expand Down
2 changes: 2 additions & 0 deletions lang/da.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ export default {
"components.input-date.errorOutsideRange": "Datoen skal være mellem {minDate} og {maxDate}",
"components.input-date.openInstructions": "Brug datoformatet {format}. Tryk på Pil ned eller Enter for at få adgang til minikalender.",
"components.input-date.now": "Nu",
"components.input-date.revertWithFormat": "{label} reverted to previous value. Use date format {format}.",
"components.input-date.revertWithInstructions": "{label} reverted to previous value. Use date format {format}. Arrow down or press enter to access mini-calendar.",
"components.input-date.today": "I dag",
"components.input-number.hintInteger": "Dette felt accepterer kun heltalsværdier (ingen decimaler)",
"components.input-number.hintDecimalDuplicate": "Der er allerede en decimal i dette tal",
Expand Down
2 changes: 2 additions & 0 deletions lang/de.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ export default {
"components.input-date.errorOutsideRange": "Datum muss zwischen {minDate} und {maxDate} liegen",
"components.input-date.openInstructions": "Das Datumsformat {format} verwenden. Minikalender durch Abwärtspfeil oder durch Drücken der Eingabetaste aufrufen.",
"components.input-date.now": "Jetzt",
"components.input-date.revertWithFormat": "{label} reverted to previous value. Use date format {format}.",
"components.input-date.revertWithInstructions": "{label} reverted to previous value. Use date format {format}. Arrow down or press enter to access mini-calendar.",
"components.input-date.today": "Heute",
"components.input-number.hintInteger": "Dieses Feld akzeptiert nur Ganzzahlen (keine Dezimalstellen)",
"components.input-number.hintDecimalDuplicate": "Diese Zahl enthält bereits eine Dezimale",
Expand Down
2 changes: 2 additions & 0 deletions lang/en-gb.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ export default {
"components.input-date.errorOutsideRange": "Date must be between {minDate} and {maxDate}",
"components.input-date.openInstructions": "Use date format {format}. Arrow down or press enter to access mini-calendar.",
"components.input-date.now": "Now",
"components.input-date.revertWithFormat": "{label} reverted to previous value. Use date format {format}.",
"components.input-date.revertWithInstructions": "{label} reverted to previous value. Use date format {format}. Arrow down or press enter to access mini-calendar.",
"components.input-date.today": "Today",
"components.input-number.hintInteger": "This field only accepts integer values (no decimals)",
"components.input-number.hintDecimalDuplicate": "There's already a decimal in this number",
Expand Down
2 changes: 2 additions & 0 deletions lang/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ export default {
"components.input-date.errorOutsideRange": "Date must be between {minDate} and {maxDate}",
"components.input-date.openInstructions": "Use date format {format}. Arrow down or press enter to access mini-calendar.",
"components.input-date.now": "Now",
"components.input-date.revertWithFormat": "{label} reverted to previous value. Use date format {format}.",
"components.input-date.revertWithInstructions": "{label} reverted to previous value. Use date format {format}. Arrow down or press enter to access mini-calendar.",
"components.input-date.today": "Today",
"components.input-number.hintInteger": "This field only accepts integer values (no decimals)",
"components.input-number.hintDecimalDuplicate": "There's already a decimal in this number",
Expand Down
2 changes: 2 additions & 0 deletions lang/es-es.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ export default {
"components.input-date.errorOutsideRange": "La fecha debe estar entre el {minDate} y el {maxDate}",
"components.input-date.openInstructions": "Usar formato de fecha {format}. Use la fecha hacia abajo o pulse Intro para acceder al minicalendario.",
"components.input-date.now": "Ahora",
"components.input-date.revertWithFormat": "{label} reverted to previous value. Use date format {format}.",
"components.input-date.revertWithInstructions": "{label} reverted to previous value. Use date format {format}. Arrow down or press enter to access mini-calendar.",
"components.input-date.today": "Hoy",
"components.input-number.hintInteger": "Este campo sólo acepta valores enteros (sin decimales)",
"components.input-number.hintDecimalDuplicate": "Ya hay un decimal en este número",
Expand Down
2 changes: 2 additions & 0 deletions lang/es.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ export default {
"components.input-date.errorOutsideRange": "La fecha debe estar entre {minDate} y {maxDate}",
"components.input-date.openInstructions": "Utilice el formato de fecha {format}. Presione la flecha hacia abajo o Intro para acceder al minicalendario.",
"components.input-date.now": "Ahora",
"components.input-date.revertWithFormat": "{label} reverted to previous value. Use date format {format}.",
"components.input-date.revertWithInstructions": "{label} reverted to previous value. Use date format {format}. Arrow down or press enter to access mini-calendar.",
"components.input-date.today": "Hoy",
"components.input-number.hintInteger": "Este campo solo acepta valores enteros (sin decimales)",
"components.input-number.hintDecimalDuplicate": "Ya hay un decimal en este número",
Expand Down
2 changes: 2 additions & 0 deletions lang/fr-fr.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ export default {
"components.input-date.errorOutsideRange": "La date doit être comprise entre {minDate} et {maxDate}",
"components.input-date.openInstructions": "Utiliser le format de date {format}. Utilisez la flèche vers le bas ou appuyez sur Entrée pour accéder au mini-calendrier.",
"components.input-date.now": "Maintenant",
"components.input-date.revertWithFormat": "{label} reverted to previous value. Use date format {format}.",
"components.input-date.revertWithInstructions": "{label} reverted to previous value. Use date format {format}. Arrow down or press enter to access mini-calendar.",
"components.input-date.today": "Aujourd’hui",
"components.input-number.hintInteger": "Ce champ accepte uniquement les valeurs entières (pas de décimales)",
"components.input-number.hintDecimalDuplicate": "Il existe déjà une décimale dans ce nombre",
Expand Down
2 changes: 2 additions & 0 deletions lang/fr.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ export default {
"components.input-date.errorOutsideRange": "La date doit être comprise entre {minDate} et {maxDate}",
"components.input-date.openInstructions": "Utiliser le format de date {format}. Utiliser la flèche vers le bas ou la touche d'entrée pour accéder au mini-calendrier.",
"components.input-date.now": "Maintenant",
"components.input-date.revertWithFormat": "{label} reverted to previous value. Use date format {format}.",
"components.input-date.revertWithInstructions": "{label} reverted to previous value. Use date format {format}. Arrow down or press enter to access mini-calendar.",
"components.input-date.today": "Aujourd'hui",
"components.input-number.hintInteger": "Ce champ accepte uniquement les valeurs entières (sans décimales)",
"components.input-number.hintDecimalDuplicate": "Ce nombre comporte déjà une décimale",
Expand Down
2 changes: 2 additions & 0 deletions lang/hi.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ export default {
"components.input-date.errorOutsideRange": "तारीख़ {minDate} और {maxDate} के बीच होनी चाहिए",
"components.input-date.openInstructions": "तारीख़ फ़ॉर्मेट {format} का उपयोग करें। लघु-कैलेंडर तक पहुँचने के लिए तीर नीचे या एंटर दबाएँ।",
"components.input-date.now": "अभी",
"components.input-date.revertWithFormat": "{label} reverted to previous value. Use date format {format}.",
"components.input-date.revertWithInstructions": "{label} reverted to previous value. Use date format {format}. Arrow down or press enter to access mini-calendar.",
"components.input-date.today": "आज",
"components.input-number.hintInteger": "यह फ़ील्ड केवल पूर्णांक मानों (कोई दशमलव नहीं) को स्वीकार करती है",
"components.input-number.hintDecimalDuplicate": "इस संख्या में पहले से ही कोई दशमलव है",
Expand Down
2 changes: 2 additions & 0 deletions lang/ja.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ export default {
"components.input-date.errorOutsideRange": "日付は {minDate} から {maxDate} の間にする必要があります",
"components.input-date.openInstructions": "日付形式 {format} を使用します。ミニカレンダーにアクセスするには下矢印を使うか Enter を押します。",
"components.input-date.now": "現在",
"components.input-date.revertWithFormat": "{label} reverted to previous value. Use date format {format}.",
"components.input-date.revertWithInstructions": "{label} reverted to previous value. Use date format {format}. Arrow down or press enter to access mini-calendar.",
"components.input-date.today": "今日",
"components.input-number.hintInteger": "このフィールドには整数値のみ入力できます(小数不可)。",
"components.input-number.hintDecimalDuplicate": "この数値にはすでに小数があります",
Expand Down
2 changes: 2 additions & 0 deletions lang/ko.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ export default {
"components.input-date.errorOutsideRange": "날짜는 {minDate}와 {maxDate} 사이여야 합니다.",
"components.input-date.openInstructions": "{format} 날짜 형식을 사용하십시오. 미니 달력에 접근하려면 아래쪽 화살표를 누르거나 Enter 키를 누르십시오.",
"components.input-date.now": "현재",
"components.input-date.revertWithFormat": "{label} reverted to previous value. Use date format {format}.",
"components.input-date.revertWithInstructions": "{label} reverted to previous value. Use date format {format}. Arrow down or press enter to access mini-calendar.",
"components.input-date.today": "오늘",
"components.input-number.hintInteger": "이 필드는 정수 값만 허용합니다(소수점 없음)",
"components.input-number.hintDecimalDuplicate": "이 숫자에 이미 소수점이 있습니다",
Expand Down
Loading
Loading