beyondcode / laravel-prose-linter

Syntax-aware proofreading for your Laravel application.
MIT License
112 stars 8 forks source link

Flatten translation arrays #2

Closed mechelon closed 2 years ago

mechelon commented 3 years ago

At the moment the translations only can be linted in this form

return [
    'failed' => 'These credentials do not match our records.',
// etc.
];

If the array is deeper nested, as for example in the validation.php file, the texts get skipped at the moment. ToDo: Integrate this in TranslationLinter::readTranslationArray() and add a proper error message for Vale::lintString().

mechelon commented 2 years ago

Fixed in 2.0