Uh oh!
There was an error while loading. Please reload this page.
feat: [Commands] lang:find show bad keys when scanning (v2) - #8285
Conversation
michalsn
left a comment
There was a problem hiding this comment.
I may not get something here... This command is described as:
Find and save available phrases to translate
Why does it suddenly show the wrong language keys? And how does it know which keys are bad?
neznaika0
commented
Dec 6, 2023
Have you read the previous issue? @kenjis and I thought it would be worthwhile to warn the user when scanning that there are incorrect keys. Look at the output. Which keys are bad?
In short, anything that does not fall under the correct |
| @@ -172,14 +186,16 @@ private function findTranslationsInFile($file): array | |||
| preg_match_all('/lang\(\'([._a-z0-9\-]+)\'\)/ui', $fileContent, $matches); | |||
There was a problem hiding this comment.
There is one feature: The regular expression initially discards bad keys. They will not be shown in the list.
kenjis
commented
Dec 8, 2023
@neznaika0 Thank you! |
Description
Superseds #8149
Checklist: