From 8e7258ca72e032ec9b0541a04c666aecda458f1c Mon Sep 17 00:00:00 2001 From: nikita-kladov Date: Wed, 5 Apr 2023 17:18:07 +0300 Subject: [PATCH] add currency mask schema --- schema/div-currency-input-mask.json | 19 +++++++++++++++++++ schema/div-input-mask.json | 4 ++++ schema/translations.json | 8 ++++++++ 3 files changed, 31 insertions(+) create mode 100644 schema/div-currency-input-mask.json diff --git a/schema/div-currency-input-mask.json b/schema/div-currency-input-mask.json new file mode 100644 index 000000000..6177f8789 --- /dev/null +++ b/schema/div-currency-input-mask.json @@ -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" + ] +} diff --git a/schema/div-input-mask.json b/schema/div-input-mask.json index 1ed736f30..995d8a751 100644 --- a/schema/div-input-mask.json +++ b/schema/div-input-mask.json @@ -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" } ] } diff --git a/schema/translations.json b/schema/translations.json index 45566196a..2762b1866 100644 --- a/schema/translations.json +++ b/schema/translations.json @@ -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": "Максимальное количество строк, которое будет видно в поле ввода."