-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Translate 3 playground files to Japanese #494
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
いくつかnitsよりのコメントを書きましたー。
const maxHighValue = 9007199254740991 | ||
const maxLowValue = -9007199254740991 | ||
|
||
// これらの数字を上回る/下回ることは、大変危険です。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMOですが、 dangerous territory
とあるので、↓みたいな感じかな、と思いました。
// これらの数字を上回る/下回ることは、大変危険です。 | |
// この数字を上回る/下回ったら、 | |
// それは危険な領域に足を踏み入れることになります。 |
あと、極力原文と訳文で行の数は一致するように心がけています(対応関係をわかりやすくするため
9007199254740994; | ||
-9007199254740994 | ||
|
||
// 六進数 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// 六進数 | |
// 16進数 |
const oneBelowMin = -9007199254740992 | ||
|
||
// このサイズの数値を扱うための解決策は、 | ||
// これらの数値を、number の代わりに BigInts に変換することです: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
原文は複数形なので BigInts
で正しいですが、日本語は BigInt
としてよいと思います。
// 既知の重要な型 (string, number, array, Promise) のリストを用いて、 | ||
// 型の使用方法がこれらのオブジェクトのAPIと一致するかどうかを推論する様になりました。 | ||
|
||
// 次のいくつかの例では、関数のパラメータを選択し、電球をクリックして "Infer Parameter types..." を選択してください。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[IMO]
// 次のいくつかの例では、関数のパラメータを選択し、電球をクリックして "Infer Parameter types..." を選択してください。 | |
// 以降の例で、関数のパラメータを選択し、 | |
// 電球マークをクリックして | |
// "Infer Parameter types..." を選択してください。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
翻訳ありがとうございます 👍
ちょっとだけ指摘しました
// | ||
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt | ||
|
||
// TypeScriptは、2の52乗以上の数値リテラル(正/負)の修正機能を提供するようになり、 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aboveはmore thanと同じなので以上ではないんですよね。。。
- ref: https://www.b-cafe.net/newsletter/2014/07/%E9%A0%AD%E3%81%AE%E6%95%B4%E7%90%86%E3%81%AB%E3%81%AA%E3%82%8A%E3%81%BE%E3%81%99%EF%BC%81%E3%80%8C%EF%BD%9E%E4%BB%A5%E4%B8%8A%E3%80%8D%E3%82%92%E3%81%82%E3%82%89%E3%82%8F%E3%81%99over-above-more.php
- ref: https://www.ldoceonline.com/jp/dictionary/above
// TypeScriptは、2の52乗以上の数値リテラル(正/負)の修正機能を提供するようになり、 | |
// TypeScriptは、2の52乗より大きい数値リテラル(正/負)の修正機能を提供するようになり、 |
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt | ||
|
||
// TypeScriptは、2の52乗以上の数値リテラル(正/負)の修正機能を提供するようになり、 | ||
// 接尾辞 "n"を追加してJavaScriptにBigInt型であることを知らせるようになりました。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
spaceを空けないに統一
// 接尾辞 "n"を追加してJavaScriptにBigInt型であることを知らせるようになりました。 | |
// 接尾辞"n"を追加してJavaScriptにBigInt型であることを知らせるようになりました。 |
|
||
// 3.7では、const変数の値が再代入されたときに、素早くletに変換する機能が追加されました。 | ||
|
||
// 以下のエラーをハイライトして、クイックフィックスを実行することで試すことができます。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO: このhighlighting、popupを表示することを指している可能性がある気がしますが、原文をリスペクトしておきます
// 以下のエラーをハイライトして、クイックフィックスを実行することで試すことができます。 | |
// ハイライトされている以下のエラーから、クイックフィックスを実行することで試すことができます。 |
@@ -0,0 +1,32 @@ | |||
//// { compiler: { noImplicitAny: false }, order: 2 } | |||
|
|||
// 3.7 で TypeScript 既存の「使用状況からの推論」によるコード修正はよりスマートになりました。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO
// 3.7 で TypeScript 既存の「使用状況からの推論」によるコード修正はよりスマートになりました。 | |
// 3.7 で TypeScript 既存の「使用状況からの推論」によるコード修正はより賢くなりました。 |
return result | ||
} | ||
|
||
// 文字列配列に文字列が追加された為、文字列配列を推論します: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO: 「に」だと思ってますが、もしかして「を」の方が一般的です?
てにをは難しい
// 文字列配列に文字列が追加された為、文字列配列を推論します: | |
// 文字列配列に文字列が追加された為、文字列配列に推論します: |
//// { compiler: { noImplicitAny: false }, order: 2 } | ||
|
||
// 3.7 で TypeScript 既存の「使用状況からの推論」によるコード修正はよりスマートになりました。 | ||
// 既知の重要な型 (string, number, array, Promise) のリストを用いて、 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO: かなり意訳ですが、このknownは一般的に知られているぐらいの意味だと思うので、考えられているにしてみました
// 既知の重要な型 (string, number, array, Promise) のリストを用いて、 | |
// 重要だと考えられている型 (string, number, array, Promise) のリストを用いて、 |
Agree! Thanks |
oh wait, this is the wrong PR - doh sorry |
I don't think it's worth the revert & rollback - @satomixx if you're happy with those changes ^ please make a new PR |
Part of #220,
I translated 3 playground files to Japanese.
Big number literals.ts
Const to let.ts
Infer From Usage Changes.ts