在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):microsoft/TypeScript-Website-Localizations开源软件地址(OpenSource Url):https://github.com/microsoft/TypeScript-Website-Localizations开源编程语言(OpenSource Language):JavaScript 92.7%开源软件介绍(OpenSource Introduction):TypeScript Website LocalizationsA repo for handling localized versions of the TypeScript website content Setting upgit clone https://github.com/microsoft/TypeScript-Website-Localizations
cd TypeScript-Website-Localizations
# Setup
yarn
# Optional: Grab the English files to make translation easier
yarn pull-en
# Optional: Verify your changes will correctly replace the english files
yarn lint
# Alternative: Run the lint watcher
yarn lint --watch That's it, you've got a copy of all the documentation and now can write documentation which follows the existing patterns. There's a longer intro in How translations workThe TypeScript website handles translations by having language specific files with matching filepaths: E.g: Has existing translations in different languages: /packages/documentation/copy/id/reference/JSX.md
/packages/documentation/copy/ja/reference/JSX.md
/packages/documentation/copy/pt/reference/JSX.md Same path, just switched This repoThis repo contains all of the non-English locale files. It means you can clone and translate without all the infrastructure overhead of the pretty complex TypeScript-Website. For example if you wanted to translate a new handbook page you would:
Language ownersWhen a new language is created, we ask for a few people to become language owners. These owners are able to merge pull requests to files in their language via code-owner-self-merge in a pull request. They will be pinged on PRs which affect them, you can see the flow in PRs like this or this. The TypeScript team generally only know English, and can answer clarifying questions if needed! For quick questions, you can use the SecureThis repo has extensive CI to ensure that you can't accidentally break the TypeScript website. There are local, fast checks that it won't break via The checks may not seem obvious to an outsider, because the website is complex, so there is a watch mode which you can run via ContributingThis project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com. When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA. This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments. Legal NoticesMicrosoft and any contributors grant you a license to the Microsoft documentation and other content in this repository under the Creative Commons Attribution 4.0 International Public License, see the LICENSE file, and grant you a license to any code in the repository under the MIT License, see the LICENSE-CODE file. Microsoft, Windows, Microsoft Azure and/or other Microsoft products and services referenced in the documentation may be either trademarks or registered trademarks of Microsoft in the United States and/or other countries. The licenses for this project do not grant you rights to use any Microsoft names, logos, or trademarks. Microsoft's general trademark guidelines can be found at http://go.microsoft.com/fwlink/?LinkID=254653. Privacy information can be found at https://privacy.microsoft.com/en-us/ Microsoft and any contributors reserve all other rights, whether under their respective copyrights, patents, or trademarks, whether by implication, estoppel or otherwise. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论