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

Add command to scan for new translation #5168

Merged
merged 40 commits into from
Dec 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
916c93a
WIP: command to scan for new translation
sdassow Sep 27, 2024
2958668
Add flag for dry-run and to update existing translations, clean up an…
sdassow Oct 1, 2024
568611a
Move options into separate structure to cut dependency
sdassow Oct 1, 2024
6951c02
Add simple end to end test
sdassow Oct 1, 2024
435f2e9
Merge branch 'develop' into add-translate-command
sdassow Oct 15, 2024
d3b81b7
Clean up comments and improve documentation based on feedback
sdassow Oct 15, 2024
458d526
Add a few more tests
sdassow Oct 15, 2024
0958357
Add tests for remaining functions
sdassow Oct 15, 2024
ad821b4
Change test values to make them easier to distinguish
sdassow Oct 15, 2024
70950d5
Use github.com/natefinch/atomic to make file renaming on windows work
sdassow Oct 15, 2024
72ba4b5
Write twice to cover non-existing and existing case
sdassow Oct 15, 2024
6593019
Move defer into the corresponding scope
sdassow Oct 15, 2024
6670eb7
Check for more errors and add missing defer in tests
sdassow Oct 15, 2024
6758ed6
Oops, unbreak
sdassow Oct 15, 2024
af2af8b
Add another missing defer
sdassow Oct 15, 2024
5f39d42
Stop changing default file permissions as it affects portability
sdassow Oct 16, 2024
40add49
Close file directly after read
sdassow Oct 16, 2024
73de44f
Close file directly after read
sdassow Oct 16, 2024
928ca30
Ensure tests use the right paths
sdassow Oct 16, 2024
0c26dcd
Oops, chdir made everything weird, so stop doing that
sdassow Oct 16, 2024
65858fe
Make options the last argument as done elsewhere
sdassow Oct 16, 2024
0e9a7ff
Merge branch 'develop' into add-translate-command
sdassow Oct 16, 2024
01011fa
Document version near main entry point for the command
sdassow Oct 18, 2024
2559dd1
Verify file name
sdassow Oct 26, 2024
6c1d1ed
Ignore non-existing files when searching
sdassow Oct 26, 2024
3dc095e
Explicitely create directory in each test function
sdassow Oct 26, 2024
c36b9a9
Add function to handle finding sources with some tests
sdassow Oct 26, 2024
70ee2c3
Remove source directory option and allow files and directories as arg…
sdassow Oct 26, 2024
39acd0f
Switch to four spaces like the current translation tool
sdassow Oct 26, 2024
4d23f0e
Remove translationsFile flag and make it a mandatory argument instead…
sdassow Oct 26, 2024
fbec8d7
Fix test after change
sdassow Oct 26, 2024
8897390
Merge branch 'develop' into add-translate-command
sdassow Oct 26, 2024
efb5574
Show exact result when test fails
sdassow Oct 27, 2024
525d866
Use filepath to be more portable
sdassow Oct 27, 2024
5af73a8
Make sure the first argument has the right file extension to prevent …
sdassow Oct 27, 2024
25a082b
Sort flags alphabetically
sdassow Nov 2, 2024
972edf6
Add support for optionally scanning for translations in imports
sdassow Nov 2, 2024
5b5e816
Unbreak after cleanup
sdassow Nov 2, 2024
10d57ee
Don't trip over empty files
sdassow Nov 2, 2024
edf95e5
Remove dry-run flag
sdassow Nov 25, 2024
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
Loading