Skip to content

Commit

Permalink
all: l10n refresh (fixes #7465) (#7506)
Browse files Browse the repository at this point in the history
Co-authored-by: dogi <dogi@users.noreply.github.com>
  • Loading branch information
Mutugiii and dogi authored Jul 31, 2024
1 parent df5a715 commit 4894432
Show file tree
Hide file tree
Showing 10 changed files with 6,163 additions and 5,589 deletions.
6 changes: 5 additions & 1 deletion angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,11 @@
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "planet-app:build"
"browserTarget": "planet-app:build",
"outputPath": "src/i18n",
"format": "xlf",
"i18nFormat": "xlf",
"ivy": true
},
"ivy":true
},
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "planet",
"license": "AGPL-3.0",
"version": "0.14.55",
"version": "0.14.56",
"myplanet": {
"latest": "v0.17.26",
"min": "v0.16.26"
"latest": "v0.17.36",
"min": "v0.16.36"
},
"scripts": {
"ng": "ng",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ <h3 class="margin-lr-3 ellipsis-title"><ng-container i18n>Step</ng-container> {{
<span>{{stepNum}}/{{maxStep}}</span>
<button mat-icon-button *ngIf="maxStep !== 1" [disabled]="stepNum === 1" (click)="changeStep(-1)"><mat-icon>navigate_before</mat-icon></button>
<button mat-icon-button *ngIf="stepNum !== maxStep" [disabled]="stepNum === maxStep || (!parent && stepDetail?.exam?.questions.length > 0 && !attempts)" (click)="changeStep(1)"><mat-icon>navigate_next</mat-icon></button>
<button mat-raised-button *ngIf="stepNum === maxStep && maxStep !== 1" [disabled]="!parent && stepDetail?.exam?.questions.length > 0 && !attempts" (click)="backToCourseDetail()">Finish</button>
<button mat-raised-button *ngIf="stepNum === maxStep && maxStep !== 1" [disabled]="!parent && stepDetail?.exam?.questions.length > 0 && !attempts" (click)="backToCourseDetail()" i18n>Finish</button>
</div>
</mat-toolbar>
<div class="view-container view-full-height" *ngIf="stepDetail?.description || resource?._attachments; else emptyRecord">
Expand Down
4 changes: 2 additions & 2 deletions src/app/dashboard/dashboard.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ <h1 class="mat-title">{{visits | number}} <ng-container i18n>Visits</ng-containe
[shelfName]="'courseIds'">
</planet-dashboard-tile>
<planet-dashboard-tile
i18n-cardTitle [cardTitle]="cardTitles.myTeams"
[cardTitle]="cardTitles.myTeams"
[cardType]="'myTeams'"
class="planet-teams-theme"
[itemData]="data.myTeams"
Expand All @@ -50,7 +50,7 @@ <h1 class="mat-title">{{visits | number}} <ng-container i18n>Visits</ng-containe
(teamRemoved)="teamRemoved($event)">
</planet-dashboard-tile>
<planet-dashboard-tile
i18n-cardTitle [cardTitle]="cardTitles.myLife"
[cardTitle]="cardTitles.myLife"
[cardType]="'myLife'"
[itemData]="myLifeItems"
class="planet-meetups-theme">
Expand Down
4 changes: 2 additions & 2 deletions src/app/feedback/feedback.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ export class FeedbackComponent implements OnInit, AfterViewInit, OnDestroy {
deleteDialog: any;
feedback = new MatTableDataSource();
displayedColumns = [ 'title', 'type', 'priority', 'owner', 'status', 'openTime', 'closeTime', 'source', 'action' ];
typeOptions: any = [ 'Question', 'Bug', 'Suggestion' ];
statusOptions: any = [ { text: 'Open', value: [ 'Open', 'Reopened' ] }, { text: 'Closed', value: 'Closed' } ];
typeOptions: any = [ $localize`Question`, $localize`Bug`, $localize`Suggestion` ];
statusOptions: any = [ { text: $localize`Open`, value: [ 'Open', 'Reopened' ] }, { text: $localize`Closed`, value: 'Closed' } ];
filter = {
'type': '',
'status': ''
Expand Down
10 changes: 5 additions & 5 deletions src/app/feedback/feedback.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ const dialogFieldOptions = [
'type': 'radio',
'name': 'priority',
'options': [
'Yes',
'No',
$localize`Yes`,
$localize`No`,
],
'required': true
},
Expand All @@ -44,9 +44,9 @@ const dialogFieldOptions = [
'type': 'radio',
'name': 'type',
'options': [
'Question',
'Bug',
'Suggestion',
$localize`Question`,
$localize`Bug`,
$localize`Suggestion`,
],
'required': true
},
Expand Down
2 changes: 1 addition & 1 deletion src/app/teams/teams-view-finances.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ export class TeamsViewFinancesComponent implements OnInit, OnChanges {

this.csvService.exportCSV({
data: updatedData,
title: $localize`Finances Transactions for ${this.team.name} Enterprise`
title: $localize`Financial Transactions for ${this.team.name} Enterprise`
});
}

Expand Down
20 changes: 10 additions & 10 deletions src/app/users/users-achievements/users-achievements.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,15 +116,15 @@ export class UsersAchievementsComponent implements OnInit {
const formattedBirthDate = format(new Date(this.user.birthDate), 'MMM d, y');
let contentArray = [
{
text: `${`${this.user.firstName}'s achievements`}`,
text: $localize`${`${this.user.firstName}'s achievements`}`,
style: 'header',
alignment: 'center',
},
{
text: `
${this.user.firstName} ${this.user.middleName ? this.user.middleName : ''} ${this.user.lastName}
${formattedBirthDate ? `Birthplace: ${formattedBirthDate}` : ''}
${this.user.Birthplace ? `Birthdate: ${this.user.Birthplace}` : ''}
${formattedBirthDate ? $localize`Birthplace: ${formattedBirthDate}` : ''}
${this.user.Birthplace ? $localize`Birthdate: ${this.user.Birthplace}` : ''}
`,
alignment: 'center',
},
Expand All @@ -135,23 +135,23 @@ export class UsersAchievementsComponent implements OnInit {

if (this.achievements.purpose) {
optionals.push(
{ text: 'My Purpose', style: 'subHeader', alignment: 'center' },
{ text: $localize`My Purpose`, style: 'subHeader', alignment: 'center' },
{ text: this.achievements.purpose, alignment: 'left', margin: [ 20, 5 ] },
sectionSpacer
);
}

if (this.achievements.goals) {
optionals.push(
{ text: 'My Goals', style: 'subHeader', alignment: 'center' },
{ text: $localize`My Goals`, style: 'subHeader', alignment: 'center' },
{ text: this.achievements.goals, alignment: 'left', margin: [ 20, 5 ] },
sectionSpacer
);
}

if (this.certifications && this.certifications.length > 0) {
optionals.push(
{ text: 'My Certifications', style: 'subHeader', alignment: 'center' },
{ text: $localize`My Certifications`, style: 'subHeader', alignment: 'center' },
...this.certifications.map((certification) => {
return [
{ text: certification.name, bold: true, margin: [ 20, 5 ] },
Expand All @@ -163,7 +163,7 @@ export class UsersAchievementsComponent implements OnInit {

if (this.achievements.achievements && this.achievements.achievements.length > 0) {
optionals.push(
{ text: 'My Achievements', style: 'subHeader', alignment: 'center' },
{ text: $localize`My Achievements`, style: 'subHeader', alignment: 'center' },
...this.achievements.achievements.map((achievement) => {
return [
{ text: achievement.title, bold: true, margin: [ 20, 5 ] },
Expand All @@ -178,7 +178,7 @@ export class UsersAchievementsComponent implements OnInit {

if (this.achievements.links && this.achievements.links.length > 0) {
optionals.push(
{ text: 'My Links', style: 'subHeader', alignment: 'center' },
{ text: $localize`My Links`, style: 'subHeader', alignment: 'center' },
...this.achievements.links.map((achievement) => {
return [
{ text: achievement.title, bold: true, margin: [ 20, 5 ] },
Expand All @@ -191,7 +191,7 @@ export class UsersAchievementsComponent implements OnInit {

if (this.achievements.references && this.achievements.references.length > 0) {
optionals.push(
{ text: 'My References', style: 'subHeader', alignment: 'center' },
{ text: $localize`My References`, style: 'subHeader', alignment: 'center' },
...this.achievements.references.map((achievement) => {
return [
{ text: achievement.name, bold: true, margin: [ 20, 5 ] },
Expand Down Expand Up @@ -222,6 +222,6 @@ export class UsersAchievementsComponent implements OnInit {

pdfMake
.createPdf(documentDefinition)
.download(`${this.user.name} achievements.pdf`);
.download($localize`${this.user.name} achievements.pdf`);
}
}
2 changes: 1 addition & 1 deletion src/app/users/users.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@

<ng-template #filterGroup>
<mat-form-field class="font-size-1 margin-lr-5">
<mat-select placeholder="Filter by role" [(value)]="filteredRole" (selectionChange)="onFilterChange($event.value)">
<mat-select i18n-placeholder placeholder="Filter by role" [(value)]="filteredRole" (selectionChange)="onFilterChange($event.value)">
<mat-option i18n value="All">All</mat-option>
<mat-option *ngFor="let role of allRolesList" [value]="role"><planet-role [role]="role"></planet-role></mat-option>
</mat-select>
Expand Down
Loading

0 comments on commit 4894432

Please sign in to comment.