generated from flaskcwg/translation-template
-
Notifications
You must be signed in to change notification settings - Fork 22
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 pofmt hook to format PO files #72
Open
frostming
wants to merge
5
commits into
main
Choose a base branch
from
improve-sync
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
+3,371
−3,417
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
greyli
reviewed
Jun 8, 2021
更新了pofmt版本,现在全宽字符在计算宽度时会乘一个系数(默认是1.8)来平衡视觉。参见最新修改。 遗留问题:
|
我看到有大量改动是把 msgid 行首的空格移动到上一行行尾,以及调整行尾单词的细微调整。这些改动是不是有必要(猜测会导致现有提交的 PR 产生冲突)?有没有可能关掉对 msgid 的格式化? |
@greyli msgid也有可能被editor或者babel改变折行,所以我理解也是应该纳入格式化中 UPDATE: pofmt 0.3.0已经支持关掉msgid: |
嗯,有道理。 |
for more information, see https://pre-commit.ci
@greyli @frostming Any updates? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
考虑增加 pre-commit.ci 以启用Pre-commit检查及自动修复