Skip to content

Commit

Permalink
newPluralForm- done
Browse files Browse the repository at this point in the history
  • Loading branch information
dvirberlo committed Apr 21, 2021
1 parent fbdafac commit 1bed9a7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export class AppComponent implements OnInit {
private userService: UserService
) {
const defaultLanguage = window.localStorage.getItem("languageSelected");
translate.addLangs(["pt", "en", "es"]);
translate.addLangs(["pt", "en", "es", "he"]);
translate.setDefaultLang(defaultLanguage || "pt");
}

Expand Down
2 changes: 1 addition & 1 deletion src/app/pages/album/album.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ <h3>

|

{{ album.total_tracks }} <span style="text-transform: lowercase;">{{ 'MusicListTracks' | translate }}{{ album.total_tracks > 1 || album.total_tracks == 0 ? ('MusicListTracksPlural' | translate) : '' }}</span>
{{ album.total_tracks }} <span style="text-transform: lowercase;">{{ album.total_tracks > 1 || album.total_tracks == 0 ? ('MusicListTracksPlural' | translate) : ('MusicListTracks' | translate) }}</span>
</h3>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/app/pages/playlist/playlist.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ <h3>
<path d="M12 17a5 5 0 0 0 5 -5" />
</svg>

{{ playlist.tracks.total }} <span style="text-transform: lowercase;">{{ 'MusicListTracks' | translate }}{{ playlist.tracks.total > 1 || playlist.tracks.total == 0 ? ('MusicListTracksPlural' | translate) : '' }}</span>
{{ playlist.tracks.total }} <span style="text-transform: lowercase;">{{ playlist.tracks.total > 1 || playlist.tracks.total == 0 ? ('MusicListTracksPlural' | translate) : ('MusicListTracks' | translate) }}</span>

|

Expand All @@ -31,7 +31,7 @@ <h3>
<path d="M21 21v-2a4 4 0 0 0 -3 -3.85" />
</svg>

{{ playlist.followers.total }} <span style="text-transform: lowercase;">{{ 'MusicListFollowers' | translate }}{{ playlist.followers.total > 1 || playlist.followers.total == 0 ? ('MusicListFollowersPlural' | translate) : '' }}</span>
{{ playlist.followers.total }} <span style="text-transform: lowercase;">{{ playlist.followers.total > 1 || playlist.followers.total == 0 ? ('MusicListFollowersPlural' | translate) : ('MusicListFollowers' | translate) }}</span>
</h3>
</div>
</div>
Expand Down

0 comments on commit 1bed9a7

Please sign in to comment.