Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Ability to manually specify locale in SSR

オープン
#29,019 コメント 6 件 リアクション 5 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
angular, typescript

調査の方向性

packages/angular/ssr/src/app-engine.ts から始め、特に AngularAppEngine#handle と現在の URL ベースの locale 選択を確認してください。locale がどのようにレンダリングされたドキュメントに到達するかを追跡し、そのうえで、呼び出し元がリクエストデータから順序付きの locale 配列を提供できること、また結果として得られる に不要な locale プレフィックスが残らないことを検証してください。

索引モデルが issue の本文から書いたものです。

説明

area: @angular/ssr feature feature: insufficient votes
Description

There is no way to specify locale in AngularAppEngine#handle based on Accept-Language, Cookie, etc. The current implementation of AngularAppEngine chooses locale based on URL.

Describe the solution you'd like

Ability to specify an array of locales when calling handle:

 app.use('/**', (req, res, next) => {
   angularApp
-    .handle(req)
+    .handle(req, undefined, { locales: req.acceptsLanguages() })
     .then((response) =>
       response ? writeResponseToNodeResponse(response, res) : next(),
     )

As far as I understand, this will also require removing the locale prefix from <base href="…"/>.

Describe alternatives you've considered

No response

主要言語
TypeScript
スター
27k
フォーク
11.8k
平均マージ
17時間 25分
マージ済み PR(30日)
183

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

angular/angular-cli のほかの issue

angular/angular-cli の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。