Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New plural form #26

Merged
merged 3 commits into from
Apr 23, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
4 changes: 2 additions & 2 deletions src/assets/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
"LibraryPlaylistsText": "Playlists",

"MusicListTracks": "Track",
"MusicListTracksPlural": "s",
"MusicListTracksPlural": "Tracks",
"MusicListFollowers": "Follower",
"MusicListFollowersPlural": "s",
"MusicListFollowersPlural": "Followers",
"DescriptionText": "Description",

"PlayingText": "Playing",
Expand Down
4 changes: 2 additions & 2 deletions src/assets/i18n/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
"LibraryPlaylistsText": "Listas de reproducción",

"MusicListTracks": "Cancion",
"MusicListTracksPlural": "es",
"MusicListTracksPlural": "Canciones",
"MusicListFollowers": "Seguidor",
"MusicListFollowersPlural": "es",
"MusicListFollowersPlural": "Seguidores",
"DescriptionText": "Descripción",

"PlayingText": "Jugando",
Expand Down
51 changes: 51 additions & 0 deletions src/assets/i18n/he.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"LoginDescriptionText": "לייטפיי. לקוח ספוטיפיי להתקני קצה חלשים",
"LoginText": "אנו מאמינים שאינך צריך מכשיר סופר-חזק על מנת להנות מהמוזיקה שלך. אנו מאמינים שאינך צריך לעמוד בקצב של כל הטכנולוגיות החדשות כדי להתבדר. זו סיבת הקיום של לייטפי.",
"LoginButtonText": "התחבר עם ספוטיפיי",

"SearchPlaceholderText": "רצועות, אלבום, אמן, פלייליסט ...",

"MenuSearchText": "חיפוש",
"MenuLibraryText": "ספרייה",
"MenuKaraokeText": "מצב קריוקי",

"HomeArtistsText": "האמנים האהובים עליך",
"HomeMusicsText": "השירים האהובים עליך",
"HomeAlbumsText": "אלבומים חדשים",
"HomePlaylistsText": "פלייליסטים מומלצים",

"ArtistTracksText": "הרוצועות המושמעות ביותר",
"ArtistAlbumsText": "אלבומים",
"ArtistRelatedText": "אמנים קשורים",

"Hello": "שלום",
"LibraryTracksText": "רצועות",
"LibraryAlbumsText": "אלבומים",
"LibraryPlaylistsText": "פלייליסטים",

"MusicListTracks": "רצועה",
"MusicListTracksPlural": "רצועות",
"MusicListFollowers": "עוקב",
"MusicListFollowersPlural": "עוקבים",
"DescriptionText": "תיאור",

"PlayingText": "מנגן",
"PausedText": "מושהה",
"NextText": "רצועה באה",
"PreviousText": "רצועה קודמת",
"ShuffleOnText": "מצב ערבוב פעיל",
"ShuffleOffText": "מצב ערבוב כבוי",

"ExitText": "יציאה",
"FollowersText": "עוקבים",
"ProfileText": "פרופיל",
"SettingsText": "הגדרות",

"SearchArtists": "אמנים",

"KaraokeNotFoundText": "לא נמצאו מילים, אך תוכלו לנסות לחפש ידנית בעזרת הכפתור למטה.",
"KaraokeSearchText": "חיפוש",

"SettingsPageTitle": "הגדרות",
"SettingsImageText": "טען תמונות (אלבום, אמנים, פלייליסטים וכו')"
}
4 changes: 2 additions & 2 deletions src/assets/i18n/pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
"LibraryPlaylistsText": "Playlists",

"MusicListTracks": "Faixa",
"MusicListTracksPlural": "s",
"MusicListTracksPlural": "Faixas",
"MusicListFollowers": "Seguidor",
"MusicListFollowersPlural": "es",
"MusicListFollowersPlural": "Seguidores",
"DescriptionText": "Descrição",

"PlayingText": "Tocando",
Expand Down