ionic-team / ionic-team/ionic-framework

bug: Ionic 8.6.0 and above issues with ion-label and ngx-translate

Abierto
#30,477 6 comentarios 2 reacciones 0 asignados Ver en GitHub
package: angular type: bug
Lenguaje dominante
TypeScript
Estrellas
52.7k
Forks
13.3k
Merge medio
1 d 15 h
PR fusionados (30 d)
51

Descripción

### Prerequisites

- [x] I have read the [Contributing Guidelines](https://github.com/ionic-team/ionic-framework/blob/main/docs/CONTRIBUTING.md#creating-an-issue).
- [x] I agree to follow the [Code of Conduct](https://ionicframework.com/code-of-conduct).
- [x] I have searched for [existing issues](https://github.com/ionic-team/ionic-framework/issues) that already report this problem, without success.

### Ionic Framework Version

v8.x

### Current Behavior

Using ngx-translate (any version) and the [translate] directiive only with ion-label causes the label to duplicate many times. Changing to any other tag such as ion-text works fine.

Something changed with ionic 8.6.0 as with 8.5.9 there is no issue.

### Expected Behavior

Should show the label once.

### Steps to Reproduce

1. use a blank ionic project (ng-modules)
2. add ngx-translate
3. add to app.module.ts `TranslateModule.forRoot({
defaultLanguage: 'en'
})],`
4. add import of TranslateModule to home.module.ts
5. Add this line to home.page.html ``

This is result:

Image

### Code Reproduction URL

n/a only need the few lines of code mentioned above

### Ionic Info

```
Ionic:

Ionic CLI : 7.2.1 (/opt/homebrew/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 8.6.1
@angular-devkit/build-angular : 19.2.15
@angular-devkit/schematics : 19.2.15
@angular/cli : 19.2.15
@ionic/angular-toolkit : 12.2.0

Capacitor:

Capacitor CLI : 7.3.0
@capacitor/android : not installed
@capacitor/core : 7.3.0
@capacitor/ios : not installed

Utility:

cordova-res : 0.15.4
native-run : 2.0.1

System:

NodeJS : v24.2.0 (/opt/homebrew/Cellar/node/24.2.0/bin/node)
npm : 11.3.0
OS : macOS Unknown
```

### Additional Information

_No response_

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.