Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xyy94813/mdn-site
A repository for participating in MDN translation.
https://github.com/xyy94813/mdn-site
Last synced: 4 days ago
JSON representation
A repository for participating in MDN translation.
- Host: GitHub
- URL: https://github.com/xyy94813/mdn-site
- Owner: xyy94813
- License: mit
- Created: 2024-04-20T13:01:35.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-08-17T05:24:08.000Z (3 months ago)
- Last Synced: 2024-08-18T05:42:48.060Z (3 months ago)
- Language: Shell
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mdn-site
A repository for participating in MDN translation.
## What does this repo do?
- Use [mdn/content](https://github.com/xyy94813/content) and [mdn/translate-content](https://github.com/xyy94813/translated-content.git) as submodules.
(_Note:I use my fork repo as submodules, you should use your own fork repo~_)
- provide some scripts for translate work
- init_env
- cp_files
- ...others will todo## Scripts
### Scripts: init_env
Init the `.env` files for "mdn/content" rpeo.
```sh
bash init_env
```### Scripts: cp_files
Copy files quickly in root of this project
```sh
bash cp_files ORIGIN_EN_CONTENT_SOURCE [LANG]
```Example:
```sh
# Will copy all files in `web/api/audio_output_devices_api` to `translated-content/files/zh-cn/web/api/audio_output_devices_api`
bash cp_files ./content/files/en-us/web/api/audio_output_devices_api# You can pass the seccond args to select language.
bash cp_files ./content/files/en-us/web/api/audio_output_devices_api fr
```### Scripts: add_l10n
Add origin file git commit hash to translated file.
> Note: it will add commit hash again if you run many times!!!
```sh
bash add_l10n TRANSLATED_DOC_DIR_OR_FILE
```Example:
```sh
bash add_l10n ./translated-content/files/zh-cn/web/api/serviceworkerglobalscope/
```## LICENSE
[MIT](./LICENSE) RoXoM [email protected]