README.md in visual_condition_builder-2.1.5 vs README.md in visual_condition_builder-2.1.6

- old
+ new

@@ -93,11 +93,11 @@ See below all the arguments you can use: Param | Description --- | ---- -label | Label of the field, if not informed, will search in the file.yml (ver i18n) +label | Label of the field, if not informed, will search in the visual_condition_builder.*.yml. (default: param name) type | Type of the field. Responsible for defining how the values will be inserted (DatePicker, Numeric Mask, ...) operators | Defines which operators you want to use, if not informed, the default operators will be used values | Sets the default values for this field, restricting the user to those values. group | Creates a separation in the field list by grouping the fields with this group @@ -364,11 +364,12 @@ ``` ## i18N When you create the conditions with `build_conditions` and `conditions_fields` the builder automacaly translate attributes for you. -See locale file example `config/locales/visual_condition_builder.pt-BR.yml`: +See locale file example `config/locales/visual_condition_builder.pt-BR.yml`: +Parameters with dots in the name are converted to underscores, example: "address.number" => "address_number" ```yml pt-BR: condition_builder: dropdown: 'Filtros' @@ -413,11 +414,12 @@ values: 'Selecione um valor' dictionaries: exemplo: 'Meu DicionĂ¡rio de Exemplo' condition_dictionaries: exemplo: - nome: 'Nome' - idade: 'Idade' + name: 'Name' + age: 'Age' + address_number: "Adress Number" ``` ## Bug reports If you discover any bugs, feel free to create an issue on GitHub. Please add as much information as \ No newline at end of file