diff --git a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages.json b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages.json index ddaeea07d73..3afe8861bb3 100644 --- a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages.json +++ b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages.json @@ -1,5 +1,4 @@ { "invalid": "Invalid", - "tooLong": "Character limit exceeded", - "longText": "The current character length is {currentLength}, which exceeds the maximum character length of {maxLength}." + "tooLong": "The current character length is {currentLength}, which exceeds the maximum character length of {maxLength}." } diff --git a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_ar.json b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_ar.json index 3e093ace7ca..5ee7c521bbe 100644 --- a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_ar.json +++ b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_ar.json @@ -1,5 +1,4 @@ { "invalid": "غير صالح", - "tooLong": "تم تجاوز حد الأحرف", - "longText": "طول الأحرف الحالي هو {currentLength}، والذي يتجاوز الحد الأقصى لطول أحرف {maxLength}." + "tooLong": "طول الأحرف الحالي هو {currentLength}، والذي يتجاوز الحد الأقصى لطول أحرف {maxLength}." } diff --git a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_bg.json b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_bg.json index a09e1f4123c..c7107e7dad3 100644 --- a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_bg.json +++ b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_bg.json @@ -1,5 +1,4 @@ { "invalid": "Невалидно", - "tooLong": "Превишен лимит за символи", - "longText": "Текущата дължина на знака е{currentLength}, която надвишава максималната дължина на знака от{maxLength}." + "tooLong": "Текущата дължина на знака е{currentLength}, която надвишава максималната дължина на знака от{maxLength}." } diff --git a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_bs.json b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_bs.json index 7f33f70421d..c8e894f2034 100644 --- a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_bs.json +++ b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_bs.json @@ -1,5 +1,4 @@ { "invalid": "Nevažeće", - "tooLong": "Premašeno je ograničenje znakova", - "longText": "Trenutni broj znakova je {currentLength}, što premašuje maksimalni broj znakova od {maxLength}." + "tooLong": "Trenutni broj znakova je {currentLength}, što premašuje maksimalni broj znakova od {maxLength}." } diff --git a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_ca.json b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_ca.json index a0b2ea66214..3863bff01f6 100644 --- a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_ca.json +++ b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_ca.json @@ -1,5 +1,4 @@ { "invalid": "No vàlid", - "tooLong": "S'ha excedit el límit de caràcters", - "longText": "La longitud de caràcters actual és de {currentLength}, que supera la longitud de caràcters màxima de {maxLength}." + "tooLong": "La longitud de caràcters actual és de {currentLength}, que supera la longitud de caràcters màxima de {maxLength}." } diff --git a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_cs.json b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_cs.json index 3579dbe45e1..0dfc7ac8c1e 100644 --- a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_cs.json +++ b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_cs.json @@ -1,5 +1,4 @@ { "invalid": "Neplatný", - "tooLong": "Překročen limit počtu znaků", - "longText": "Aktuální počet znaků je {currentLength}, což překračuje maximální počet znaků {maxLength}." + "tooLong": "Aktuální počet znaků je {currentLength}, což překračuje maximální počet znaků {maxLength}." } diff --git a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_da.json b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_da.json index 1c7fa5968cf..4c330cbdbcf 100644 --- a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_da.json +++ b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_da.json @@ -1,5 +1,4 @@ { "invalid": "Ugyldig", - "tooLong": "Grænsen for antallet af tegn er overskredet", - "longText": "Den aktuelle tegnlængde er {currentLength}, hvilket overskrider den maksimale tegnlængde på {maxLength}." + "tooLong": "Den aktuelle tegnlængde er {currentLength}, hvilket overskrider den maksimale tegnlængde på {maxLength}." } diff --git a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_de.json b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_de.json index 9bc6fcbdce0..1dab159ca77 100644 --- a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_de.json +++ b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_de.json @@ -1,5 +1,4 @@ { "invalid": "Ungültig", - "tooLong": "Zeichenlimit wurde überschritten", - "longText": "Die aktuelle Zeichenanzahl beträgt {currentLength} und überschreitet damit die maximal zulässige Anzahl von {maxLength} Zeichen." + "tooLong": "Die aktuelle Zeichenanzahl beträgt {currentLength} und überschreitet damit die maximal zulässige Anzahl von {maxLength} Zeichen." } diff --git a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_el.json b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_el.json index dfb62e95008..20e1ff3221f 100644 --- a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_el.json +++ b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_el.json @@ -1,5 +1,4 @@ { "invalid": "Μη έγκυρο", - "tooLong": "Υπέρβαση ορίου χαρακτήρων", - "longText": "Το τρέχον μήκος χαρακτήρων είναι {currentLength}, το οποίο υπερβαίνει το μέγιστο μήκος χαρακτήρων του {maxLength}." + "tooLong": "Το τρέχον μήκος χαρακτήρων είναι {currentLength}, το οποίο υπερβαίνει το μέγιστο μήκος χαρακτήρων του {maxLength}." } diff --git a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_en.json b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_en.json index ddaeea07d73..3afe8861bb3 100644 --- a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_en.json +++ b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_en.json @@ -1,5 +1,4 @@ { "invalid": "Invalid", - "tooLong": "Character limit exceeded", - "longText": "The current character length is {currentLength}, which exceeds the maximum character length of {maxLength}." + "tooLong": "The current character length is {currentLength}, which exceeds the maximum character length of {maxLength}." } diff --git a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_es.json b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_es.json index da4d7a00131..ff9c468354a 100644 --- a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_es.json +++ b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_es.json @@ -1,5 +1,4 @@ { "invalid": "No válido", - "tooLong": "Se superó el límite de caracteres", - "longText": "La longitud de caracteres actual es de {currentLength}, lo cual supera la longitud de caracteres máxima de {maxLength}." + "tooLong": "La longitud de caracteres actual es de {currentLength}, lo cual supera la longitud de caracteres máxima de {maxLength}." } diff --git a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_et.json b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_et.json index 1444d5efc53..10c76ffa3e9 100644 --- a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_et.json +++ b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_et.json @@ -1,5 +1,4 @@ { "invalid": "Sobimatu", - "tooLong": "Tähemärkide piirang on ületatud", - "longText": "Praegune tähemärkide arv on {currentLength}, mis ületab tähemärkide maksimaalse arvu{maxLength}." + "tooLong": "Praegune tähemärkide arv on {currentLength}, mis ületab tähemärkide maksimaalse arvu{maxLength}." } diff --git a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_fi.json b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_fi.json index c3d9ba5ebd1..bb306e72ccd 100644 --- a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_fi.json +++ b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_fi.json @@ -1,5 +1,4 @@ { "invalid": "Virheellinen", - "tooLong": "Merkkien määrä ylitetty", - "longText": "Nykyinen merkkipituus on {currentLength}, joka ylittää {maxLength} merkkien enimmäispituuden." + "tooLong": "Nykyinen merkkipituus on {currentLength}, joka ylittää {maxLength} merkkien enimmäispituuden." } diff --git a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_fr.json b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_fr.json index 035502c840a..a3d11109bcd 100644 --- a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_fr.json +++ b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_fr.json @@ -1,5 +1,4 @@ { "invalid": "Non valide", - "tooLong": "Limite de caractères dépassée", - "longText": "La longueur actuelle de caractères est de {currentLength}, ce qui dépasse la longueur maximale de {maxLength} caractères." + "tooLong": "La longueur actuelle de caractères est de {currentLength}, ce qui dépasse la longueur maximale de {maxLength} caractères." } diff --git a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_he.json b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_he.json index ceb475ddcde..dbdf8490afb 100644 --- a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_he.json +++ b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_he.json @@ -1,5 +1,4 @@ { "invalid": "לא תקין", - "tooLong": "חריגה ממגבלת מספר התווים", - "longText": "אורך התו הנוכחי הוא {currentLength}, אשר חורג מאורך התו המרבי של {maxLength}." + "tooLong": "אורך התו הנוכחי הוא {currentLength}, אשר חורג מאורך התו המרבי של {maxLength}." } diff --git a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_hr.json b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_hr.json index 7f33f70421d..c8e894f2034 100644 --- a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_hr.json +++ b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_hr.json @@ -1,5 +1,4 @@ { "invalid": "Nevažeće", - "tooLong": "Premašeno je ograničenje znakova", - "longText": "Trenutni broj znakova je {currentLength}, što premašuje maksimalni broj znakova od {maxLength}." + "tooLong": "Trenutni broj znakova je {currentLength}, što premašuje maksimalni broj znakova od {maxLength}." } diff --git a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_hu.json b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_hu.json index 555ce4e1f22..cf49563268f 100644 --- a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_hu.json +++ b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_hu.json @@ -1,5 +1,4 @@ { "invalid": "Érvénytelen", - "tooLong": "Karakterkorlát túllépve", - "longText": "Az aktuális karakterhossz {currentLength}, ami meghaladja a maximális {maxLength} karakterhosszúságot." + "tooLong": "Az aktuális karakterhossz {currentLength}, ami meghaladja a maximális {maxLength} karakterhosszúságot." } diff --git a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_id.json b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_id.json index 2a103e995d9..a74cc4021b5 100644 --- a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_id.json +++ b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_id.json @@ -1,5 +1,4 @@ { "invalid": "Tidak valid", - "tooLong": "Batas karakter terlampaui", - "longText": "Panjang karakter saat ini adalah {currentLength}, yang mana melebihi panjang karakter maksimum {maxLength}." + "tooLong": "Panjang karakter saat ini adalah {currentLength}, yang mana melebihi panjang karakter maksimum {maxLength}." } diff --git a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_it.json b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_it.json index 2e81a4d2174..7b3e4201e1c 100644 --- a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_it.json +++ b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_it.json @@ -1,5 +1,4 @@ { "invalid": "Non valido", - "tooLong": "Limite di caratteri superato", - "longText": "La lunghezza in caratteri corrente è {currentLength}, superiore al limite massimo di {maxLength}." + "tooLong": "La lunghezza in caratteri corrente è {currentLength}, superiore al limite massimo di {maxLength}." } diff --git a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_ja.json b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_ja.json index 024994408f8..30be9895a3e 100644 --- a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_ja.json +++ b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_ja.json @@ -1,5 +1,4 @@ { "invalid": "無効", - "tooLong": "文字制限を超えています", - "longText": "現在の文字数は {currentLength} です。これは、文字数の最大値である {maxLength} 文字を超過しています。" + "tooLong": "現在の文字数は {currentLength} です。これは、文字数の最大値である {maxLength} 文字を超過しています。" } diff --git a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_ko.json b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_ko.json index 70de6a5b5f1..ea29c834aab 100644 --- a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_ko.json +++ b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_ko.json @@ -1,5 +1,4 @@ { "invalid": "잘못됨", - "tooLong": "문자 제한을 초과함", - "longText": "현재 문자 길이({currentLength})가 최대 문자 길이({maxLength})를 초과합니다." + "tooLong": "현재 문자 길이({currentLength})가 최대 문자 길이({maxLength})를 초과합니다." } diff --git a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_lt.json b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_lt.json index 7285396766c..d9c4f25fa48 100644 --- a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_lt.json +++ b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_lt.json @@ -1,5 +1,4 @@ { "invalid": "Neteisingas", - "tooLong": "Viršytas simbolių limitas", - "longText": "Dabartinis simbolių skaičius yra {currentLength}, o tai viršija maksimalų {maxLength} simbolių ilgį." + "tooLong": "Dabartinis simbolių skaičius yra {currentLength}, o tai viršija maksimalų {maxLength} simbolių ilgį." } diff --git a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_lv.json b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_lv.json index f064dacebe8..b7229820b7d 100644 --- a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_lv.json +++ b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_lv.json @@ -1,5 +1,4 @@ { "invalid": "Nederīgs", - "tooLong": "Pārsniegts rakstzīmju skaita ierobežojums", - "longText": "Pašreizējais rakstzīmju garums ir {currentLength}, kas pārsniedz maksimālo rakstzīmju garumu {maxLength}." + "tooLong": "Pašreizējais rakstzīmju garums ir {currentLength}, kas pārsniedz maksimālo rakstzīmju garumu {maxLength}." } diff --git a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_nl.json b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_nl.json index be295565898..5d4644fbba1 100644 --- a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_nl.json +++ b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_nl.json @@ -1,5 +1,4 @@ { "invalid": "Ongeldig", - "tooLong": "Tekenlimiet overschreden", - "longText": "Het huidige aantal tekens is {currentLength}, wat meer is dan het maximumaantal van {maxLength} tekens." + "tooLong": "Het huidige aantal tekens is {currentLength}, wat meer is dan het maximumaantal van {maxLength} tekens." } diff --git a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_no.json b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_no.json index b6f834c8672..a7cd4909ab1 100644 --- a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_no.json +++ b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_no.json @@ -1,5 +1,4 @@ { "invalid": "Ugyldig", - "tooLong": "Maksimumsgrensen for antall tegn er overskredet", - "longText": "Den nåværende tegnlengden er {currentLength}, som overskrider den maksimalt tillatte tegnlengden på {maxLength}." + "tooLong": "Den nåværende tegnlengden er {currentLength}, som overskrider den maksimalt tillatte tegnlengden på {maxLength}." } diff --git a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_pl.json b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_pl.json index 8429fec6251..a755fc86fe4 100644 --- a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_pl.json +++ b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_pl.json @@ -1,5 +1,4 @@ { "invalid": "Niepoprawny", - "tooLong": "Przekroczono limit liczby znaków", - "longText": "Bieżąca liczba znaków wynosi {currentLength}, co przekracza maksymalną liczbę znaków {maxLength}." + "tooLong": "Bieżąca liczba znaków wynosi {currentLength}, co przekracza maksymalną liczbę znaków {maxLength}." } diff --git a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_pt-BR.json b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_pt-BR.json index 6367dc9d796..12797139f48 100644 --- a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_pt-BR.json +++ b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_pt-BR.json @@ -1,5 +1,4 @@ { "invalid": "Inválido", - "tooLong": "Limite de caracteres excedido", - "longText": "O comprimento atual do caractere é {currentLength}, que exceda o comprimento máximo de caracteres de {maxLength}." + "tooLong": "O comprimento atual do caractere é {currentLength}, que exceda o comprimento máximo de caracteres de {maxLength}." } diff --git a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_pt-PT.json b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_pt-PT.json index c9f65b8b5a0..79a3f5fb21c 100644 --- a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_pt-PT.json +++ b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_pt-PT.json @@ -1,5 +1,4 @@ { "invalid": "Inválido", - "tooLong": "Limite de carateres ultrapassado", - "longText": "O comprimento atual dos caracteres é {currentLength}, o que excede o comprimento máximo de caracteres de {maxLength}." + "tooLong": "O comprimento atual dos caracteres é {currentLength}, o que excede o comprimento máximo de caracteres de {maxLength}." } diff --git a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_ro.json b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_ro.json index 38febaacb46..25478e8e032 100644 --- a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_ro.json +++ b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_ro.json @@ -1,5 +1,4 @@ { "invalid": "Nevalid", - "tooLong": "Limită de caractere depășită", - "longText": "Lungimea maximă a caracterelor curentă este {currentLength}, ceea ce depășește lungimea maximă a caracterelor de maximum {maxLength}." + "tooLong": "Lungimea maximă a caracterelor curentă este {currentLength}, ceea ce depășește lungimea maximă a caracterelor de maximum {maxLength}." } diff --git a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_ru.json b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_ru.json index d48f7741a21..232dec227de 100644 --- a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_ru.json +++ b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_ru.json @@ -1,5 +1,4 @@ { "invalid": "Недопустимый", - "tooLong": "Превышен лимит символов", - "longText": "Текущая длина символов - {currentLength}, что превышает максимальную длину символов {maxLength}." + "tooLong": "Текущая длина символов - {currentLength}, что превышает максимальную длину символов {maxLength}." } diff --git a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_sk.json b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_sk.json index c8cbfa3f7c0..b6ed643949f 100644 --- a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_sk.json +++ b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_sk.json @@ -1,5 +1,4 @@ { "invalid": "Neplatné", - "tooLong": "Bol prekročený limit počtu znakov", - "longText": "Aktuálna dĺžka znaku je {currentLength}, čo presahuje maximálnu dĺžku {maxLength}." + "tooLong": "Aktuálna dĺžka znaku je {currentLength}, čo presahuje maximálnu dĺžku {maxLength}." } diff --git a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_sl.json b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_sl.json index 38fb8d91833..59017bf8349 100644 --- a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_sl.json +++ b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_sl.json @@ -1,5 +1,4 @@ { "invalid": "Neveljavno", - "tooLong": "Presežena je omejitev znakov", - "longText": "Trenutna dolžina znakov znaša {currentLength}, kar presega maksimalno dolžino znakov {maxLength}." + "tooLong": "Trenutna dolžina znakov znaša {currentLength}, kar presega maksimalno dolžino znakov {maxLength}." } diff --git a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_sr.json b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_sr.json index 126a97af158..97a162b6d7f 100644 --- a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_sr.json +++ b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_sr.json @@ -1,5 +1,4 @@ { "invalid": "Nevažeće", - "tooLong": "Prekoračeno ograničenje znakova", - "longText": "Trenutno ograničenje za broj karaktera je {currentLength}, što prekoračuje maksimalni broj dužine karaktera od {maxLength}." + "tooLong": "Trenutno ograničenje za broj karaktera je {currentLength}, što prekoračuje maksimalni broj dužine karaktera od {maxLength}." } diff --git a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_sv.json b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_sv.json index 8932365c75c..2a786903bc2 100644 --- a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_sv.json +++ b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_sv.json @@ -1,5 +1,4 @@ { "invalid": "Ogiltig", - "tooLong": "Teckengränsen överskriden", - "longText": "Den aktuella teckenlängden är {currentLength}, vilket överskrider den maximala teckenlängden på {maxLength}." + "tooLong": "Den aktuella teckenlängden är {currentLength}, vilket överskrider den maximala teckenlängden på {maxLength}." } diff --git a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_th.json b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_th.json index e51f4887ee0..208567e0084 100644 --- a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_th.json +++ b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_th.json @@ -1,5 +1,4 @@ { "invalid": "ไม่ถูกต้อง", - "tooLong": "เกินขีดจำกัดอักขระ", - "longText": "ความยาวจำนวนอักขระในปัจจุบันคือ {currentLength} ซึ่งเกินความยาวจำนวนอักขระสูงสุดที่ {maxLength}" + "tooLong": "ความยาวจำนวนอักขระในปัจจุบันคือ {currentLength} ซึ่งเกินความยาวจำนวนอักขระสูงสุดที่ {maxLength}" } diff --git a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_tr.json b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_tr.json index 8fc2e2c1f43..0a384d62d60 100644 --- a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_tr.json +++ b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_tr.json @@ -1,5 +1,4 @@ { "invalid": "Geçersiz", - "tooLong": "Karakter sınırı aşıldı", - "longText": "Mevcut karakter uzunluğu {currentLength} ve maksimum karakter uzunluğu {maxLength}'i aşıyor." + "tooLong": "Mevcut karakter uzunluğu {currentLength} ve maksimum karakter uzunluğu {maxLength}'i aşıyor." } diff --git a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_uk.json b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_uk.json index 7709c5cd642..d47daf43794 100644 --- a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_uk.json +++ b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_uk.json @@ -1,5 +1,4 @@ { "invalid": "Неприпустимий", - "tooLong": "Перевищено обмеження кількості символів", - "longText": "Поточна довжина символу становить {currentLength}, що перевищує максимальну довжину символів {maxLength}." + "tooLong": "Поточна довжина символу становить {currentLength}, що перевищує максимальну довжину символів {maxLength}." } diff --git a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_vi.json b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_vi.json index b49b2ba9aa7..5f066eef766 100644 --- a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_vi.json +++ b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_vi.json @@ -1,5 +1,4 @@ { "invalid": "Không hợp lệ", - "tooLong": "Đã vượt quá giới hạn ký tự", - "longText": "Độ dài ký tự hiện tại là {currentLength}, vượt quá độ dài ký tự tối đa {maxLength}." + "tooLong": "Độ dài ký tự hiện tại là {currentLength}, vượt quá độ dài ký tự tối đa {maxLength}." } diff --git a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_zh-CN.json b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_zh-CN.json index 4881d2eedf2..c4e34b544dd 100644 --- a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_zh-CN.json +++ b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_zh-CN.json @@ -1,5 +1,4 @@ { "invalid": "无效", - "tooLong": "超出字符限制", - "longText": "当前字符长度为 {currentLength},超过了最大字符长度 {maxLength}。" + "tooLong": "当前字符长度为 {currentLength},超过了最大字符长度 {maxLength}。" } diff --git a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_zh-HK.json b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_zh-HK.json index f3abcaeafe6..c1a339e64f9 100644 --- a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_zh-HK.json +++ b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_zh-HK.json @@ -1,5 +1,4 @@ { "invalid": "無效", - "tooLong": "已超過字元限制", - "longText": "目前字元長度為 {currentLength},超過了最大字元長度 {maxLength}。" + "tooLong": "目前字元長度為 {currentLength},超過了最大字元長度 {maxLength}。" } diff --git a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_zh-TW.json b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_zh-TW.json index f3abcaeafe6..c1a339e64f9 100644 --- a/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_zh-TW.json +++ b/packages/calcite-components/src/components/text-area/assets/text-area/t9n/messages_zh-TW.json @@ -1,5 +1,4 @@ { "invalid": "無效", - "tooLong": "已超過字元限制", - "longText": "目前字元長度為 {currentLength},超過了最大字元長度 {maxLength}。" + "tooLong": "目前字元長度為 {currentLength},超過了最大字元長度 {maxLength}。" } diff --git a/packages/calcite-components/src/components/text-area/interfaces.ts b/packages/calcite-components/src/components/text-area/interfaces.ts new file mode 100644 index 00000000000..0f4c56a232a --- /dev/null +++ b/packages/calcite-components/src/components/text-area/interfaces.ts @@ -0,0 +1,4 @@ +export interface CharacterLengthObj { + currentLength: string; + maxLength: string; +} diff --git a/packages/calcite-components/src/components/text-area/text-area.tsx b/packages/calcite-components/src/components/text-area/text-area.tsx index 59059753603..87592e98345 100644 --- a/packages/calcite-components/src/components/text-area/text-area.tsx +++ b/packages/calcite-components/src/components/text-area/text-area.tsx @@ -45,6 +45,7 @@ import { InteractiveComponent, updateHostInteraction } from "../../utils/interactive"; +import { CharacterLengthObj } from "./interfaces"; /** * @slot - A slot for adding text. @@ -363,6 +364,8 @@ export class TextArea @State() effectiveLocale = ""; + @State() localizedCharacterLengthObj: CharacterLengthObj; + @Watch("effectiveLocale") effectiveLocaleChange(): void { updateMessages(this, this.effectiveLocale); @@ -402,26 +405,39 @@ export class TextArea } }; - renderCharacterLimit = (): VNode => { - return this.maxLength ? ( - - this.maxLength }}> - {this.getLocalizedCharacterLength()} + renderCharacterLimit = (): VNode | null => { + if (this.maxLength) { + this.localizedCharacterLengthObj = this.getLocalizedCharacterLength(); + return ( + + this.maxLength }}> + {this.localizedCharacterLengthObj.currentLength} + + {"/"} + {this.localizedCharacterLengthObj.maxLength} - {"/"} - {numberStringFormatter.localize(this.maxLength.toString())} - - ) : null; + ); + } + return null; }; - getLocalizedCharacterLength(): string { + getLocalizedCharacterLength(): CharacterLengthObj { + const currentLength = this.value ? this.value.length.toString() : "0"; + const maxLength = this.maxLength.toString(); + if (this.numberingSystem === "latn") { + return { currentLength, maxLength }; + } + numberStringFormatter.numberFormatOptions = { locale: this.effectiveLocale, numberingSystem: this.numberingSystem, signDisplay: "never", useGrouping: this.groupSeparator }; - return numberStringFormatter.localize(this.value ? this.value.length.toString() : "0"); + return { + currentLength: numberStringFormatter.localize(currentLength), + maxLength: numberStringFormatter.localize(maxLength) + }; } resizeObserver = createObserver("resize", async () => { @@ -439,10 +455,16 @@ export class TextArea syncHiddenFormInput(input: HTMLInputElement): void { input.setCustomValidity(""); if (this.value?.length > this.maxLength) { - input.setCustomValidity(this.messages.tooLong); + input.setCustomValidity(this.replacePlaceHoldersInMessages()); } } + private replacePlaceHoldersInMessages(): string { + return this.messages.tooLong + .replace("{maxLength}", this.localizedCharacterLengthObj.maxLength) + .replace("{currentLength}", this.localizedCharacterLengthObj.currentLength); + } + // height and width are set to auto here to avoid overlapping on to neighboring elements in the layout when user starts resizing. // throttle is used to avoid flashing of textarea when user resizes. private setHeightAndWidthToAuto = throttle(