add currency mask schema

This commit is contained in:
nikita-kladov
2023-04-05 17:18:07 +03:00
parent c9428199b2
commit 8e7258ca72
3 changed files with 31 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
{
"type": "object",
"$description": "translations.json#/div_input_mask_currency",
"properties": {
"type": {
"type": "string",
"enum": [
"currency"
]
},
"locale": {
"$ref": "common.json#/non_empty_string",
"$description": "translations.json#/div_input_mask_currency_locale"
}
},
"required": [
"type"
]
}
+4
View File
@@ -3,6 +3,10 @@
{
"$ref": "div-fixed-length-input-mask.json",
"$description": "translations.json#/div_input_mask_fixed_length"
},
{
"$ref": "div-currency-input-mask.json",
"$description": "translations.json#/div_input_mask_currency"
}
]
}
+8
View File
@@ -955,6 +955,14 @@
"en": "Regular expression with which the character will be validated.",
"ru": "Регулярное выражение, валидирующее вводимый символ."
},
"div_input_mask_currency": {
"en": "Mask for currency with language format.",
"ru": "Маска для валюты с региональным форматом."
},
"div_input_mask_currency_locale": {
"en": "IETF BCP 47 language tag for currency mask. Look https://en.wikipedia.org/wiki/IETF_language_tag for more. If not specified, it will be determined automatically.",
"ru": "Языковой тег стандарта IETF BCP 47 для маски валюты. Подробнее https://en.wikipedia.org/wiki/IETF_language_tag. Если не задан, то будет определен автоматически."
},
"div_input_max_visible_lines": {
"en": "Maximum number of lines to be displayed in the input field.",
"ru": "Максимальное количество строк, которое будет видно в поле ввода."