Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Language translations finder and update #7896

Merged
merged 46 commits into from
Sep 18, 2023
Merged
Changes from 1 commit
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
32c5307
feat: Add lang:find command
neznaika0 Sep 4, 2023
03a81b6
test: Add test for lang:find command
neznaika0 Sep 4, 2023
624ba01
docs: Description using command
neznaika0 Sep 4, 2023
034f9dd
docs: Example code with command
neznaika0 Sep 4, 2023
1fc2852
fix: Sorting of found files
neznaika0 Sep 5, 2023
119f386
test: Reduce the search depth
neznaika0 Sep 5, 2023
e670761
test: Added missed actions
neznaika0 Sep 5, 2023
9602e79
test: Move test file to subfolder
neznaika0 Sep 5, 2023
49d2c57
fix: Missing sorted files in a loop
neznaika0 Sep 6, 2023
13d93ea
fix: Remove prefix variables
neznaika0 Sep 6, 2023
3145772
fix: Typo in desciption
neznaika0 Sep 6, 2023
10c81bc
fix: Return with a constant exit code
neznaika0 Sep 6, 2023
00284d1
fix: Error text is corrected
neznaika0 Sep 6, 2023
3b86c1a
fix: Format saved array code
neznaika0 Sep 6, 2023
a5f9a79
fix: Add method test is subfolder
neznaika0 Sep 6, 2023
168c5af
fix: Move actions to tearDown()
neznaika0 Sep 6, 2023
37ece4e
fix: Add makeLocaleDirectory()
neznaika0 Sep 6, 2023
9982db0
docs: Correct spelling
neznaika0 Sep 6, 2023
d7a724b
fix: Assert returned code
neznaika0 Sep 6, 2023
3b97664
fix: Method to private
neznaika0 Sep 6, 2023
ca3652b
fix: Move long code to process()
neznaika0 Sep 6, 2023
672f8f8
docs: add changelog
neznaika0 Sep 8, 2023
84e5ae6
docs: add link
neznaika0 Sep 8, 2023
156b947
docs: Language correction
neznaika0 Sep 8, 2023
c564374
fix: Language correction
neznaika0 Sep 8, 2023
62bff7e
fix: Shorten the syntax
neznaika0 Sep 8, 2023
cde1e02
style: Format code
neznaika0 Sep 8, 2023
b3cb726
docs: add @phpstan-return
neznaika0 Sep 8, 2023
0d3ad09
fix: Replace str_contains()
neznaika0 Sep 8, 2023
b55964e
fix: Shorten the syntax
neznaika0 Sep 8, 2023
32ca130
fix: Rename variable to foundLanguageKeys
neznaika0 Sep 8, 2023
f6d9b2b
tests: Delete unnecessary cleaning
neznaika0 Sep 8, 2023
ecad354
fix: Add array helper as separate class
neznaika0 Sep 8, 2023
ddf73f3
test: Add array helper tests
neznaika0 Sep 8, 2023
8122123
fix: Move methods to array helper class
neznaika0 Sep 8, 2023
b025df1
fix: Language correction
neznaika0 Sep 9, 2023
d143a9b
style: Format code
neznaika0 Sep 9, 2023
1026314
style: Format code
neznaika0 Sep 9, 2023
db1567e
tests: Compliance with the project rules
neznaika0 Sep 9, 2023
1c16cb4
fix: Added a warning instead of cs-fix
neznaika0 Sep 9, 2023
48f8f65
style: Format code
neznaika0 Sep 9, 2023
7bb80d9
fix: Replace array syntax
neznaika0 Sep 10, 2023
e22599a
docs: add formatting advice
neznaika0 Sep 11, 2023
d675308
style: compliance with phpstan strict rules
neznaika0 Sep 11, 2023
935b387
style: compliance with rector rules
neznaika0 Sep 11, 2023
070d7e5
docs: update note in localization.rst
neznaika0 Sep 14, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: Replace str_contains()
  • Loading branch information
neznaika0 committed Sep 14, 2023
commit 0d3ad09dabc757db675a2734125544124ab5fe7c
2 changes: 1 addition & 1 deletion system/Commands/Translation/LocalizationFinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ private function findTranslationsInFile($file): array

private function isIgnoredFile(SplFileInfo $file): bool
{
if ($file->isDir() || str_contains($file->getRealPath(), $this->languagePath)) {
if ($file->isDir() || $this->isSubDirectory($file->getRealPath(), $this->languagePath)) {
return true;
}

Expand Down