mirror of
https://github.com/divkit/divkit.git
synced 2026-06-06 20:07:59 +00:00
add currency mask schema
This commit is contained in:
@@ -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"
|
||||
]
|
||||
}
|
||||
@@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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": "Максимальное количество строк, которое будет видно в поле ввода."
|
||||
|
||||
Reference in New Issue
Block a user