Skip to content

Commit

Permalink
chore(logic): add a translation for empty rule
Browse files Browse the repository at this point in the history
  • Loading branch information
E-L-T committed Nov 6, 2023
1 parent 6c959d9 commit 2465e13
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/logic/empty_operator.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class Logic::EmptyOperator < Logic::BinaryOperator
def to_s(_type_de_champs = []) = "empty operator"
def to_s(_type_de_champs = []) = I18n.t('logic.empty_operator')

def type(_type_de_champs = []) = :empty

Expand Down
1 change: 1 addition & 0 deletions config/locales/models/logic/en.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
en:
logic:
empty: empty member
empty_operator: empty operator
1 change: 1 addition & 0 deletions config/locales/models/logic/fr.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
fr:
logic:
empty: un membre vide
empty_operator: un opérateur vide
is: Est
is_not: N’est pas
operators:
Expand Down

0 comments on commit 2465e13

Please sign in to comment.