Skip to content

Commit 6c824b3

Browse files
authored
Update to latest angular version and change ngx translate with transloco (#64)
* Update package.json to latest angular 17 version * Change translation library from ngx translate to transloco
1 parent 8e3dd6f commit 6c824b3

File tree

66 files changed

+2598
-1913
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+2598
-1913
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ ng generate environments
166166
8. add default translation language to root component.
167167

168168
```typescript
169-
constructor(private translate: TranslateService)
169+
constructor(private translate: TranslocoService)
170170
{
171171
translate.use(translate.defaultLang);
172172
}

documentation/js-sdk-guide/modules/tooling-guide/pages/card-generation.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ Make sure moment.js and dateAdaptor are correctly installed
314314

315315
In app.component.ts, it is required to set the default language:
316316

317-
constructor(lang: TranslateService) {
317+
constructor(lang: TranslocoService) {
318318
lang.use(lang.defaultLang);
319319
}
320320

documentation/js-sdk-guide/modules/tooling-guide/pages/table-custom-column.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ At the table column, add a *ng-container* statement as follows:
5757
----
5858
<!-- speedLimitWarning Column -->
5959
<ng-container matColumnDef="speedLimitWarning">
60-
<th mat-header-cell *matHeaderCellDef mat-sort-header>{{ 'movement.v100.speedLimitWarning.preferredName' | translate }}</th>
60+
<th mat-header-cell *matHeaderCellDef mat-sort-header>{{ 'movement.v100.speedLimitWarning.preferredName' | transloco }}</th>
6161
6262
<td mat-cell *matCellDef="let row">
6363
<!-- {{ row.speedLimitWarning || '-' }} -->
@@ -172,7 +172,7 @@ You can **directly** integrate this component in the respective column of the ta
172172
----
173173
<!-- batteryLevel Column -->
174174
<ng-container matColumnDef="batteryLevel">
175-
<th mat-header-cell *matHeaderCellDef mat-sort-header>{{ 'movement.v100.batteryLevel.preferredName' | translate }}</th>
175+
<th mat-header-cell *matHeaderCellDef mat-sort-header>{{ 'movement.v100.batteryLevel.preferredName' | transloco }}</th>
176176
177177
<td mat-cell *matCellDef="let row">
178178
<app-svg-bar-indicator [indicatorValue]="row.batteryLevel"></app-svg-bar-indicator>

documentation/js-sdk-guide/modules/tooling-guide/pages/table-generation.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ Make sure moment.js and dateAdaptor are correctly installed
344344

345345
In app.component.ts, it is required to set the default language):
346346

347-
constructor(lang: TranslateService) {
347+
constructor(lang: TranslocoService) {
348348
lang.use(lang.defaultLang);
349349
}
350350

0 commit comments

Comments
 (0)