-
Notifications
You must be signed in to change notification settings - Fork 3
feat: scan and generate transifex.yaml based on files in a repo #9
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
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: BLumia The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Reviewer's GuideIntroduces a new Sequence diagram for gentxyaml CLI command executionsequenceDiagram
actor User
participant CLI as CLI
participant gentxyaml as gentxyaml::subcmd_gentxyaml
participant FS as FileSystem
participant Yaml as serde_yml
User->>CLI: te gentxyaml <project_root>
CLI->>gentxyaml: subcmd_gentxyaml(project_root)
gentxyaml->>FS: scan_all_translation_files(project_root)
FS-->>gentxyaml: List of translation files
gentxyaml->>gentxyaml: identify_source_files(project_root, files)
gentxyaml->>gentxyaml: generate_transifex_yaml(project_root, source_files)
gentxyaml->>Yaml: to_string(tx_yaml)
Yaml-->>gentxyaml: YAML string
alt transifex.yaml exists
gentxyaml->>CLI: Print YAML to stdout
else
gentxyaml->>FS: Write transifex.yaml
FS-->>gentxyaml: Success
gentxyaml->>CLI: Print success message
end
CLI-->>User: Output result
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
支持基于当前仓库内的文件进行扫描并生成 transifex.yaml 配置文件 Log:
deepin pr auto review代码审查意见:
总体来说,代码逻辑清晰,功能实现正确,但是存在一些可以优化的地方。建议在未来的开发中,注意代码的可读性、可维护性和性能优化。 |
支持基于当前仓库内的文件进行扫描并生成 transifex.yaml 配置文件
Log:
Summary by Sourcery
Add a new CLI subcommand to automatically scan translation files in the repository and generate a Transifex configuration file.
New Features:
Enhancements:
Build:
Tests: