You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/contributing.md
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -126,7 +126,7 @@ If you want to start translating the docs in a _new_ language:
126
126
1. Create the corresponding `<lang>` sub-folder for your translation.
127
127
2. Modify the i18n configuration in the `.vitepress` sub-folder.
128
128
3. Translate the docs and run the doc site to self-test locally.
129
-
4. Create a checkpoint for your language by running `pnpm run docs:translation-status <lang> [<commit>]`. A checkpoint is the hash and date of the latest commit when you do the translation. The checkpoint information is stored in the status file `packages/docs/.vitepress/translation-status.json`. _It's crucial for long-term maintenance since all the further translation sync-ups are based on their previous checkpoints._ Usually, you can skip the commit argument because the default value is `main`.
129
+
4. Create a checkpoint for your language by running `pnpm run docs:translation:update <lang> [<commit>]`. A checkpoint is the hash and date of the latest commit when you do the translation. The checkpoint information is stored in the status file `packages/docs/.vitepress/translation-status.json`. _It's crucial for long-term maintenance since all the further translation sync-ups are based on their previous checkpoints._ Usually, you can skip the commit argument because the default value is `main`.
130
130
5. Commit all the changes and create a pull request to our GitHub repo.
131
131
132
132
We will have a paragraph at the top of each translation page that shows the translation status. That way, users can quickly determine if the translation is up-to-date or lags behind the English version.
@@ -135,9 +135,9 @@ Speaking of the up-to-date translation, we also need good long-term maintenance
135
135
136
136
1. See what translation you need to sync up with the original docs. There are two popular ways:
137
137
1. Via the [GitHub Compare](https://github.com/vuejs/router/compare/) page, only see the changes in `packages/docs/*` from the checkpoint hash to `main` branch. You can find the checkpoint hash for your language via the translation status file `packages/docs/.vitepress/translation-status.json`. The compare page can be directly opened with the hash as part of the URL, e.g. https://github.com/vuejs/router/compare/e008551...main
138
-
2. Via a local command: `pnpm run docs:compare-to-translate <lang> [<commit>]`.
138
+
2. Via a local command: `pnpm run docs:translation:compare <lang> [<commit>]`.
139
139
2. Create your own branch and start the translation update, following the previous comparison.
140
-
3. Create a checkpoint for your language by running `pnpm run docs:translation-status <lang> [<commit>]`.
140
+
3. Create a checkpoint for your language by running `pnpm run docs:translation:update <lang> [<commit>]`.
141
141
4. Commit all the changes and create a pull request to our GitHub repo.
142
142
143
143
<!-- TODO: add an example once we have got one -->
@@ -149,18 +149,18 @@ You can also host the translation on your own. To create one, fork our GitHub re
149
149
- Ensure you maintain the _checkpoint_ properly. Also, ensure the _translation status_ is well-displayed on the top of each translation page.
150
150
- Utilize the diff result between the latest official repository and your own checkpoint to guide your translation.
151
151
152
-
Tip: you can add the official repo as a remote to your forked repo. This way, you can still run `pnpm run docs:translation-status <lang> [<commit>]` and `npm run docs:compare-to-translate <lang> [<commit>]` to get the checkpoint and diff result:
152
+
Tip: you can add the official repo as a remote to your forked repo. This way, you can still run `pnpm run docs:translation:update <lang> [<commit>]` and `npm run docs:translation:compare <lang> [<commit>]` to get the checkpoint and diff result:
0 commit comments