angular / angular/angular-cli

Esbuilder cannot localize 3rd party components

オープン
#26,350 コメント 3 件 リアクション 9 件 担当者 0 名 GitHub で見る
angular/build:application angular/build:dev-server area: @angular/build freq1: low severity3: broken type: bug/fix
主要言語
TypeScript
スター
27k
フォーク
11.8k
平均マージ
14時間 23分
マージ済み PR(30日)
162

説明

### Command

serve

### Is this a regression?

- [x] Yes, this behavior used to work in the previous version

### The previous version in which this bug was not present was

_No response_

### Description

I am start using the new angular builder and stuck with localizing an app. The texts are stayed in a source locale and the corresponding LOCALE_ID is not provided.

### Minimal Reproduction

1. git clone https://github.com/destus90/angular-esbuilder-kendo-localization
2. npm install
3. npm run start:fr
4. Observe browser's console (the provided LOCALE_ID is 'en-US') and the texts are not translated into French

### Exception or Error

_No response_

### Your Environment

```text
_ _ ____ _ ___
/ \ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _|
/ △ \ | '_ \ / _` | | | | |/ _` | '__| | | | | | |
/ ___ \| | | | (_| | |_| | | (_| | | | |___| |___ | |
/_/ \_\_| |_|\__, |\__,_|_|\__,_|_| \____|_____|___|
|___/

Angular CLI: 17.0.0
Node: 20.7.0
Package Manager: npm 10.1.0
OS: win32 x64

Angular: 17.0.0
... animations, cli, common, compiler, compiler-cli, core, forms
... localize, platform-browser, platform-browser-dynamic, router

Package Version
---------------------------------------------------------
@angular-devkit/architect 0.1700.0
@angular-devkit/build-angular 17.0.0
@angular-devkit/core 17.0.0
@angular-devkit/schematics 17.0.0
@schematics/angular 17.0.0
rxjs 7.8.1
typescript 4.9.5
zone.js 0.14.2
```

### Anything else relevant?

_No response_

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

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

調査の方向性

リンクされた最小再現で serve コマンドから始め、npm install に続けて npm run start:fr を実行します。提供されている en-US の LOCALE_ID とフランス語ビルドおよびブラウザーコンソールの動作を比較します。完了条件は、サードパーティコンポーネントのテキストがフランス語にローカライズされていることです。

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

評価

技術スタック
angular, typescript
領域
build-system, internationalization, localization
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
活発
明瞭さ
おおむね明確
初心者へのやさしさ
48/100

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

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