lighthouse icon indicating copy to clipboard operation
lighthouse copied to clipboard

Please add @rules multilingual site support feature

Open Rasool-deldar opened this issue 3 years ago • 1 comments

What problem does this feature proposal attempt to solve?

To support multilingual sites

image As you can see in the image, we use trans to return a specific type of return data to the same language

Which possible solutions should be considered?

Adding the trans feature to @rules solves this problem, for example, translating a translation to rules when it was true

@rules(translation: true) # default false

Rasool-deldar avatar Mar 30 '21 05:03 Rasool-deldar

Have you considered https://lighthouse-php.com/master/security/validation.html#validator-classes? They support defining rules through arbitrary PHP code.

spawnia avatar Mar 30 '21 13:03 spawnia