Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

124
Views
Interpolación de cadena angular i18next

Me gustaría traducir mi código con i18next para mi proyecto angular.

He instalado: i18next, i18next-xhr-backend, i18next-browser-languagedetector

Usando mucho ngfor en mi código -> No sé cómo usar i18next en interpolaciones de cadenas.

En este ejemplo a continuación, me gustaría traducir item.label.

 <ng-container *ngFor="let item of listOfItems; let i = index">
 <mat-grid-tile rowspan="1" class="{{ item.visible === 'false' ? 'invisible' : '' }}"> <button *ngIf="item && !isItemSelected(item)" (click)="selectItem(item)" mat-raised-button class="action-button {{ item.color }}"> <span class="action-button-text">{{ item.label }}</span> </button> </mat-grid-tile> </ng-container>```

Aquí está mi lista de etiquetas:

 [{ "id": "1", "label": "flower", "subject": "plant", "visible": "true", "color": "yellow" }, { "id": "2", "label": "bread", "subject": "table", "visible": "false", "color": "white" }, { "id": "3", "label": "glass", "subject": "table", "visible": "true", "color": "green" }, { "id": "4", "label": "pissenlit", "subject": "plant", "visible": "true", "color": "yellow_green" }]

aquí está mi lista de traducción inglés y francés: en:

 {"flower":"flower", "bread":"bread", "glass":"glass" "pissenlit":"pissenlit" }

FR

 {"flower":"fleur", "bread":"pain", "glass":"verre" "pissenlit":"pissenlit" }```
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!