microsoft / microsoft/TypeScript-Website-Localizations
Translation Recommendations
まだ誰も着手していません。
- 主要言語
- JavaScript
- スター
- 124
- フォーク
- 128
- 平均マージ
- 22時間 34分
- マージ済み PR(30日)
- 1
説明
How To Contribute
-
Join the TypeScript Discord - come say hi the
ts-web-translate -
Follow the instructions on the README of this repo to get set up.
All Markdown Docs
Each translatable page is a unique markdown file which can be uniquely handled per language. Any markdown file not found will be replaced with English when not present.
Website
The website supports localization via React-intl, as of today only the navigation bar it translatable, but with time this will grow. The infra just came in with https://github.com/microsoft/TypeScript-Website/pull/180
There are a series of keys and values for each language, with a fallback to English if you miss something. The TypeScript compiler will keep it all in check.
Playground
You can cover the examples in the dropdown in the playground (and in the site footer on desktops.) Full docs here
- Make a subfolder with the code of the language in the copy folder of the 'playground-examples'
- Ensure the filename are the same as English, (you can provide a different title via the JSON headers in the ts/js files)
- Check out this folder
- Ensure the filename is the same (we can provide a different title via the YML headers in the markdown files)
Recommendations
I'm pretty new to the translation game, but here's some notes from working with people so far on how translations can culturally work in the TS website.
Translate code to be a cultural fit. E.g.
const helloWorld = "Hi"
to
const olaMundo = "Olá`
Translate names in example
const user = { name: "John" }
to
const usar = { name: "João" }
Note: we aim to have a diverse set of nationalities and genders in our examples, so I'd recommend not changing all of them, but try keep it feeling like it was written with that in mind also.
Translate Technical Terms, but keep English around
This one is nuanced, but a term like Mapped Type is the name for this:
type MyPartialType<Type> = {
// For every existing property inside the type of Type
// convert it to be a ?: version
[Property in keyof Type]?: Type[Property];
};
So, if you translate it to "mapeada type", then provide a reference to the original name the first time it is used: "mapeada type (Mapped Type em inglês)" so that readers can know how to find the English resources on a topic.
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
リポジトリの README と、リンクされている markdown documentation、playground-examples、tsconfig-reference ディレクトリから始めます。ナビゲーションバーで現在 React-intl のローカライズがどのように使用されているか、また翻訳された例がどのように整理されているかを確認します。この issue では対象ファイルも受け入れ基準も特定されていないため、完了するにはスコープを定義し、合意した翻訳の推奨事項を文書化する必要があります。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- react, typescript
- 領域
- content, documentation, localization
- issue の種類
- ドキュメント
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100