lighthouse
lighthouse copied to clipboard
Please add @rules multilingual site support feature
What problem does this feature proposal attempt to solve?
To support multilingual sites
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
Have you considered https://lighthouse-php.com/master/security/validation.html#validator-classes? They support defining rules through arbitrary PHP code.