- Notifications
You must be signed in to change notification settings - Fork134
A repo for the TypeScript Website localizations
License
CC-BY-4.0, MIT licenses found
Licenses found
microsoft/TypeScript-Website-Localizations
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
A repo for handling localized versions of the TypeScript website content
git clone https://github.com/microsoft/TypeScript-Website-Localizationscd TypeScript-Website-Localizations# Setupyarn# Optional: Grab the English files to make translation easieryarn pull-en# Optional: Verify your changes will correctly replace the english filesyarn lint# Alternative: Run the lint watcheryarn 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 introinwelcome.md
.
The TypeScript website handles translations by having language specific files with matching filepaths:
E.g:/packages/documentation/copy/en/reference/JSX.md
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 switcheden
forid
,ja
&pt
.
This 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:
- Clone this repo (see above)
- Pull in the English files
yarn pull-en
(these will be gitignored) - Find your english file:
docs/documentation/en/handbook-v2/Basics.md
- Recreate the same folder path in your language:
docs/documentation/it/handbook-v2/Basics.md
- Translate the file!
- Validate your changes:
yarn lint
(oryarn lint docs/documentation/it/handbook-v2/Basics.md
) - Create a pull request to this repo
- Once merged, the translation will appear on the next website deploy
When 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 viacode-owner-self-merge in a pull request. They will be pinged on PRs which affect them, you can see the flow in PRs likethis orthis.
The TypeScript team generally only know English, and can answer clarifying questions if needed! For quick questions, you can use thets-website-translation
channel in theTypeScript Discord.
This 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 viayarn test
and then the full TypeScript website test suite runs with the changes, and a website build is generated to ensure that nothing breaks.
The checks may not seem obvious to an outsider, because the website is complex, so there is a watch mode which you can run viayarn link --watch
to get instant feedback.
This project welcomes contributions and suggestions. Most contributions require you to agree to aContributor License Agreement (CLA) declaring that you have the right to, and actually do, grant usthe rights to use your contribution. For details, visithttps://cla.opensource.microsoft.com.
When you submit a pull request, a CLA bot will automatically determine whether you need to providea CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructionsprovided by the bot. You will only need to do this once across all repos using our CLA.
This project has adopted theMicrosoft Open Source Code of Conduct.For more information see theCode of Conduct FAQ orcontactopencode@microsoft.com with any additional questions or comments.
Microsoft and any contributors grant you a license to the Microsoft documentation and other contentin this repository under theCreative Commons Attribution 4.0 International Public License,see theLICENSE file, and grant you a license to any code in the repository under theMIT License, see theLICENSE-CODE file.
Microsoft, Windows, Microsoft Azure and/or other Microsoft products and services referenced in the documentationmay 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 athttp://go.microsoft.com/fwlink/?LinkID=254653.
Privacy information can be found athttps://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.
About
A repo for the TypeScript Website localizations
Resources
License
CC-BY-4.0, MIT licenses found
Licenses found
Code of conduct
Security policy
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.