Skip to content

Commit

Permalink
Fix some wrong translation and add a CI (Still Coding)
Browse files Browse the repository at this point in the history
  • Loading branch information
qhy040404 committed May 3, 2022
1 parent 18eb6f4 commit 51fd6d6
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 8 deletions.
62 changes: 62 additions & 0 deletions .github/workflows/auto-translate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: Auto-Translate

on:
push:
branches:
- 'main'
paths:
- 'README.md'
pull_request:
types:
- closed
branches:
- 'main'
paths:
- "README.md"

jobs:
translate:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/[email protected]

- name: Upload translation
uses: actions/[email protected]
with:
name: temp_trans_file
path: temp-translation.md

push-and-PR:
if: ${{ github.event.pull_request.merged == true || github.event_name == 'push' }}
needs: translate
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/[email protected]
with:
ref: auto-translation

- name: Download translation
uses: actions/[email protected]
with:
name: temp_trans_file

- name: Commit translation to review branch
shell: sh
run: |
git add temp-translation.md
git commit -m "Auto translation for new lines"
git push origin auto-translation
- name: Open PR and request reviews
uses: repo-sync/pull-request@master
with:
source_branch: "auto-translation"
destination_branch: "main"
pr_title: "Auto Translation"
pr_body: "*Automated PR, submitting translation.*"
pr_reviewer: "qhy040404,geekan"
github_token: ${{ github.token }}
16 changes: 8 additions & 8 deletions README_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

---

- [1. Terminology](#1-Terminology)
- [2. Goal](#2-Goal)
- [1. Glossary](#1-Glossary)
- [2. Objective](#2-Objective)
- [3. Key Result](#3-Key-Result)
- [4. Analysis](#4-Analysis)
- [5. Action](#5-Action)
Expand All @@ -21,19 +21,19 @@
- [6.2.4. Bath](#624-Bath)
- [6.2.5. Housework(for aging males)](#625-Houseworkfor-aging-males)
- [6.2.6. Sleep](#626-Sleep)
- [6.3. Other](#63-Other)
- [6.3. Context](#63-Context)
- [6.3.1. Emotion](#631-Emotion)
- [6.3.2. Wealth](#632-Wealth)
- [6.3.3. Weight](#633-Weight)
- [6.3.4. COVID-19](#634-COVID-19)

---

### 1. Terminology
### 1. Glossary

* ACM: All-Cause Mortality

### 2. Goal
### 2. Objective

* Live longer

Expand Down Expand Up @@ -74,12 +74,12 @@
##### 6.1.1. Solid

* Plain boiled pork
* [JAMA子刊: 食用红肉和加工肉类会增加心脏病和死亡风险!鱼肉和家禽肉则不会](https://zhuanlan.zhihu.com/p/268401670)*(Mandarin, Use Chrome's Translator)*
* [Meat Consumption Linked to Small Rises in CVD, All-Cause Mortality Risks](https://www.tctmd.com/news/meat-consumption-linked-small-rises-cvd-all-cause-mortality-risks)
* Reference: [Associations of Processed Meat, Unprocessed Red Meat, Poultry, or Fish Intake With Incident Cardiovascular Disease and All-Cause Mortality](https://jamanetwork.com/journals/jamainternalmedicine/articlepdf/2759737/jamainternal_zhong_2020_oi_190112.pdf)
* Increased red meat intake is associated with risk of death. Respondents who increased red meat intake by at least half a serving per day on average over eight years had a 10% increase in ACM over the next eight years. (HR, 1.10[95%CI, 1.04-1.17])
* Eating two servings of read or processed meat(excluding poultry or fish) per week increases ACM by 3%.
> P.S. Half serving of red meat is equivalent to 14g processed red meat or 40g unprocessed red meat
* ![红肉](https://user-images.githubusercontent.com/2707039/163703960-6f321de5-4daa-4ea5-95b9-af9c96f1c1bc.jpg)
* ![red_meat](https://user-images.githubusercontent.com/2707039/163703960-6f321de5-4daa-4ea5-95b9-af9c96f1c1bc.jpg)
* [红肉和白肉最大的区别是什么?为啥要这么分呢?](https://www.zhihu.com/question/67223570/answer/809785380)*(Mandarin, Use Chrome's Translator)*
* Fruits and vegetables
* [每年54万人死亡, 竟是因为水果吃得少!?这已成十大死亡因素之一!](https://www.sohu.com/a/322360740_164924)*(Mandarin, Use Chrome's Translator)*
Expand Down Expand Up @@ -268,7 +268,7 @@
* One conclusion is that bedtime is strongly associated with all-cause mortality, and that going to bed too early and going to bed too late can affect health. But going to bed early was associated with higher all-cause mortality than going to bed late, with an increased risk of death by 43 percent and going to bed late by 15 percent.
* There are still many limitations in this research study. For example, it does not directly prove the relationship between bedtime and death, only shows the correlation, and the data obtained by using the self-reports of the participants to count sleep time are not objective enough.

#### 6.3. Other
#### 6.3. Context

##### 6.3.1. Emotion

Expand Down

0 comments on commit 51fd6d6

Please sign in to comment.