Retranslate the complete Japanese online edition from Chinese (#2008)

* Retranslate the complete Japanese online edition from Chinese

* Fit Japanese homepage labels and localize heading permalinks

* Point Japanese contribution instructions to the Japanese preview

* Replace locale conditionals with multilingual UI tables
This commit is contained in:
Yudong Jin
2026-10-30 02:12:26 +08:00
committed by GitHub
parent 455e8c1281
commit 7257641e0e
1987 changed files with 23531 additions and 23261 deletions

View File

@@ -6,13 +6,13 @@
@main
enum Stack {
/* Driver Code */
/* 実行用コード */
static func main() {
/* スタックを初期化 */
// Swift には組み込みのスタッククラスがないため、Array をスタックとして使う
/* スタックを初期化する */
// Swift には組み込みのスタッククラスがないため、Array をスタックとして使える
var stack: [Int] = []
/* 要素をプッシュ */
/* 要素をプッシュする */
stack.append(1)
stack.append(3)
stack.append(2)
@@ -20,20 +20,20 @@ enum Stack {
stack.append(4)
print("スタック stack = \(stack)")
/* スタックトップの要素にアクセス */
/* スタックの先頭要素にアクセスする */
let peek = stack.last!
print("スタックトップ要素 peek = \(peek)")
print("スタックの先頭要素 peek = \(peek)")
/* 要素をポップ */
/* 要素をポップする */
let pop = stack.removeLast()
print("ポップした要素 pop = \(pop)、ポップ後の stack = \(stack)")
print("ポップした要素 pop = \(pop)、ポップ後 stack = \(stack)")
/* スタックの長さを取得 */
/* スタックの長さを取得する */
let size = stack.count
print("スタックの長さ size = \(size)")
/* 空かどうかを判定 */
/* 空かどうかを判定する */
let isEmpty = stack.isEmpty
print("スタックが空かどうか = \(isEmpty)")
print("スタックは空か = \(isEmpty)")
}
}