diff --git a/src/app/app.component.html b/src/app/app.component.html index 95a9c4d..1ff51c9 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -18,7 +18,7 @@ {{ 'Movies' | translate }} diff --git a/src/app/features/home/components/home.component.html b/src/app/features/home/components/home.component.html index f08ab5f..d8765b0 100644 --- a/src/app/features/home/components/home.component.html +++ b/src/app/features/home/components/home.component.html @@ -16,7 +16,7 @@

{{ 'Trending' | translate }}

  • - +
    @@ -52,7 +52,7 @@

    {{ 'Upcoming' | translate }}

  • - +
    @@ -71,7 +71,7 @@

    {{ 'Upcoming' | translate }}


    -

    {{ 'What\'s Popular' | translate }}

    +

    {{ 'WhatsPopular' | translate }}

    - + +
  • + } + + + - } diff --git a/src/app/features/person/components/person.component.ts b/src/app/features/person/components/person.component.ts index 4a9f75a..b699982 100644 --- a/src/app/features/person/components/person.component.ts +++ b/src/app/features/person/components/person.component.ts @@ -12,7 +12,6 @@ import { PersonService } from '../services/person.service'; export class PersonDetailsComponent implements OnInit { person: Person; - paramEmptyBiography: any; showFullBiography = false; @ViewChild('accordion', { static: false }) accordion: NgbAccordionDirective; @@ -26,9 +25,6 @@ export class PersonDetailsComponent implements OnInit { private async loadDetails() { this.person = await this.personService.getPersonDetails(this.personId).toPromise(); - this.paramEmptyBiography = { - value: this.person.name - }; this.titleService.setTitle(`${this.person.name} | Movies Db`); setTimeout(() => { diff --git a/src/app/features/tv/components/tv.component.html b/src/app/features/tv/components/tv.component.html index 239749b..2adc388 100644 --- a/src/app/features/tv/components/tv.component.html +++ b/src/app/features/tv/components/tv.component.html @@ -22,12 +22,12 @@
    @if(tv.voteAverage > 0) { -
    +
    } @if (tv.trailerKey) { {{ 'Play Trailer' | translate }} + target="_blank">{{ 'PlayTrailer' | translate }} } @@ -54,7 +54,7 @@
    {{ 'Overview' | translate }}
    @if (tv.topBilledCast.length) {
    -

    {{ 'Series Cast' | translate }}

    +

    {{ 'SeriesCast' | translate }}

    @for (cast of tv.topBilledCast; track cast) { @@ -87,7 +87,7 @@

    {{ 'Series Cast' | translate }}


    @if(tv.lastSeason) { -
    {{ (tv.status === 'Ended' ? 'LastSeason' : 'CurrentSeason') | translate }}
    +
    {{ ((tv.status === 'Ended' || tv.status === 'Canceled') ? 'LastSeason' : 'CurrentSeason') | translate }}
    @@ -130,7 +130,7 @@

    {{ 'Recommendations' | translate }}

    @if (tv.status) { -
    {{ 'Status' | translate }} {{tv.status}}
    +
    {{ 'Status' | translate }} {{ 'TVStatus.'+tv.status | translate }}
    }
    {{ 'Network' | translate }} @@ -147,7 +147,7 @@

    {{ 'Recommendations' | translate }}

    {{ 'Type' | translate }} {{tv.type}}
    } @if (tv.originalLanguage) { -
    {{ 'Original Language' | translate }} {{tv.originalLanguage}}
    +
    {{ 'OriginalLanguage' | translate }} {{ 'Languages.'+tv.originalLanguage | translate }}
    }
    {{ 'Keywords' | translate }} diff --git a/src/app/shared/components/error-pages/page-not-found/page-not-found.component.html b/src/app/shared/components/error-pages/page-not-found/page-not-found.component.html index 47ddd71..69096f8 100644 --- a/src/app/shared/components/error-pages/page-not-found/page-not-found.component.html +++ b/src/app/shared/components/error-pages/page-not-found/page-not-found.component.html @@ -1,9 +1,9 @@

    -

    Oops!

    +

    {{ 'Errors.404.Exclamation' | translate }}

    -

    404 - Page not found

    -

    The page you are looking for may have been deleted or is temporarily unavailable.

    +

    {{ 'Errors.404.Title' | translate }}

    +

    {{ 'Errors.404.Description' | translate }}

    \ No newline at end of file diff --git a/src/app/shared/components/media-list/media-list.component.html b/src/app/shared/components/media-list/media-list.component.html index a313ca1..daf2d87 100644 --- a/src/app/shared/components/media-list/media-list.component.html +++ b/src/app/shared/components/media-list/media-list.component.html @@ -1,6 +1,7 @@
    -
    diff --git a/src/app/shared/components/media-list/media-list.component.ts b/src/app/shared/components/media-list/media-list.component.ts index d71f25e..6bbcf30 100644 --- a/src/app/shared/components/media-list/media-list.component.ts +++ b/src/app/shared/components/media-list/media-list.component.ts @@ -25,10 +25,13 @@ export class MediaListComponent implements OnInit { @Input() genreId: number; @Input({required: true}) mediaType: 'movie' | 'tv'; + languageKeyMediaType: string; + constructor(private mediaService: MediaService, private titleService: Title) { } ngOnInit() { const prefix = this.mediaType === 'movie' ? 'Movies' : 'TV Shows'; + this.languageKeyMediaType = this.mediaType === 'movie' ? 'Movies' : 'TVShows'; this.titleService.setTitle(`${prefix} | Movies Db`); this.loadParams(); } diff --git a/src/assets/i18n/en-US.json b/src/assets/i18n/en-US.json index 0306b1f..1660bf2 100644 --- a/src/assets/i18n/en-US.json +++ b/src/assets/i18n/en-US.json @@ -1,65 +1,81 @@ { + "SelectDefaultLanguage": "Select the default language", + "Languages": { + "English": "English", + "Spanish": "Spanish", + "Portuguese": "Portuguese", + "French": "French", + "German": "German", + "Italian": "Italian", + "Russian": "Russian" + }, "Trending": "Trending", "Today": "Today", - "This Week": "This Week", + "ThisWeek": "This Week", "Upcoming": "Upcoming", - "What's Popular": "What's Popular", + "WhatsPopular": "What's Popular", "Streaming": "Streaming", - "On TV": "On TV", - "In Theaters": "In Theaters", + "OnTV": "On TV", + "InTheaters": "In Theaters", "Movies": "Movies", - "TV Shows": "TV Shows", + "TVShows": "TV Shows", "Search": "Search", - "User Score": "User
    Score", - "Play Trailer": "Play Trailer", + "UserScore": "User
    Score", + "PlayTrailer": "Play Trailer", "Overview": "Overview", - "Top Billed Cast": "Top Billed Cast", + "TopBilledCast": "Top Billed Cast", "Screenplay": "Screenplay", "Creator": "Creator", "Characters": "Characters", - "Series Cast": "Series Cast", - "Part of the": "Part of the", + "SeriesCast": "Series Cast", + "PartOfThe": "Part of the", "VIEW THE COLLECTION": "VIEW THE COLLECTION", "Recommendations": "Recommendations", "Status": "Status", "episode": "episode", "episodes": "episodes", - "Production Company": "Production Company", - "Original Language": "Original Language", + "ProductionCompany": "Production Company", + "OriginalLanguage": "Original Language", "Network": "Network", "Type": "Type", "Budget": "Budget", "Revenue": "Revenue", "Keywords": "Keywords", "Biography": "Biography", - "Known For": "Known For", - "Personal Info": "Personal Info", - "Known Credits": "Known Credits", + "KnownFor": "Known For", + "PersonalInfo": "Personal Info", + "KnownCredits": "Known Credits", "Gender": "Gender", "Birthday": "Birthday", - "years old": "years old", - "Place of Birth": "Place of Birth", - "Day of Death": "Day of Death", + "YearsOld": "{{age}} years old", + "PlaceOfBirth": "Place of Birth", + "DayOfDeath": "Day of Death", "Acting": "Acting", "as": "as", - "Number of Movies": "Number of Movies", + "NumberOfMovies": "Number of Movies", "EmptyRecommendations": "We don't have enough data to suggest any movies/tv-shows based on {{value}}.", "EmptyProductionCompany": "No production company has been added.", "EmptyKeyworks": "No keywords have been added.", "EmptyBiography": "We don't have a biography for {{value}}.", - "SearchPlaceHolder": "Search ...", + "SearchPlaceHolder": "Search for {{mediaType}} ...", "NoResults": "No results found.", "ShowMore": "Show more", - "English": "English", - "Spanish": "Spanish", - "SelectDefaultLanguage": "Select the default language", - "Released": "Released", - "Returning Series": "Returning Series", - "Planned": "Planned", - "In Production": "In Production", - "Ended": "Ended", - "Canceled": "Canceled", - "Pilot": "Pilot", + "MovieStatus": { + "Rumored": "Rumored", + "Planned": "Planned", + "In Production": "In Production", + "Post Production": "Post Production", + "Released": "Released", + "Canceled": "Canceled" + }, + "TVStatus": { + "Returning Series": "Returning Series", + "Planned": "Planned", + "In Production": "In Production", + "Ended": "Ended", + "Canceled": "Canceled", + "Pilot": "Pilot" + }, "Male": "Male", "Female": "Female", "People": "People", @@ -67,5 +83,12 @@ "LastSeason": "Last Season", "CurrentSeason": "Current Season", "SeasonFinale": "Season Finale", - "SeasonOverview": "{{seasonName}} of {{title}} premiered on {{airDate}}" + "SeasonOverview": "{{seasonName}} of {{title}} premiered on {{airDate}}", + "Errors": { + "404": { + "Exclamation": "Oops!", + "Title": "404 - Page not found", + "Description": "The page you are looking for may have been deleted or is temporarily unavailable." + } + } } \ No newline at end of file diff --git a/src/assets/i18n/es-MX.json b/src/assets/i18n/es-MX.json index 2640218..d9aca03 100644 --- a/src/assets/i18n/es-MX.json +++ b/src/assets/i18n/es-MX.json @@ -1,65 +1,81 @@ { + "SelectDefaultLanguage": "Selecciona el idioma por defecto", + "Languages": { + "English": "Inglés", + "Spanish": "Español", + "Portuguese": "Portugués", + "French": "Francés", + "German": "Alemán", + "Italian": "Italiano", + "Russian": "Ruso" + }, "Trending": "Tendencias", "Today": "Hoy", - "This Week": "Esta semana", + "ThisWeek": "Esta semana", "Upcoming": "Próximamente", - "What's Popular": "Lo más popular", + "WhatsPopular": "Lo más popular", "Streaming": "Retransmisión", - "On TV": "En televisón", - "In Theaters": "En cines", + "OnTV": "En televisón", + "InTheaters": "En cines", "Movies": "Películas", - "TV Shows": "Series de TV", + "TVShows": "Series de TV", "Search": "Buscar", - "User Score": "Puntuación
    de usuario", - "Play Trailer": "Reproducir trailer", + "UserScore": "Puntuación
    de usuario", + "PlayTrailer": "Reproducir trailer", "Overview": "Resumen", - "Top Billed Cast": "Actores Principales", + "TopBilledCast": "Actores Principales", "Screenplay": "Guión", "Creator": "Creador", "Characters": "Personajes", - "Series Cast": "Reparto de la serie", - "Part of the": "Parte de la", + "SeriesCast": "Reparto de la serie", + "PartOfThe": "Parte de la", "VIEW THE COLLECTION": "VER LA COLECCCIÓN", "Recommendations": "Recomendaciones", "Status": "Estado", "episode": "episodio", "episodes": "episodios", - "Production Company": "Compañía de producción", - "Original Language": "Idioma original", + "ProductionCompany": "Compañía de producción", + "OriginalLanguage": "Idioma original", "Network": "Canal", "Type": "Type", "Budget": "Presupuesto", "Revenue": "Ingresos", "Keywords": "Palabras clave", "Biography": "Biografía", - "Known For": "Conocido por", - "Personal Info": "Información personal", - "Known Credits": "Créditos conocidos", + "KnownFor": "Conocido por", + "PersonalInfo": "Información personal", + "KnownCredits": "Créditos conocidos", "Gender": "Sexo", "Birthday": "Cumpleaños", - "years old": "años", - "Place of Birth": "Lugar de Nacimiento", - "Day of Death": "Día de la muerte", + "YearsOld": "{{age}} años", + "PlaceOfBirth": "Lugar de Nacimiento", + "DayOfDeath": "Día de la muerte", "Acting": "Actuando", "as": "como", - "Number of Movies": "Número de películas", + "NumberOfMovies": "Número de películas", "EmptyRecommendations": "No tenemos suficientes datos para recomendarte películas o programas de televisión basados en {{value}}.", "EmptyProductionCompany": "No se ha añadido ninguna productora.", "EmptyKeyworks": "No se han agregado palabras clave.", "EmptyBiography": "No tenemos una biografía para {{value}}.", - "SearchPlaceHolder": "Buscar ...", + "SearchPlaceHolder": "Buscar por {{mediaType}} ...", "NoResults": "No hay resultados", "ShowMore": "Leer más", - "English": "Inglés", - "Spanish": "Español", - "SelectDefaultLanguage": "Selecciona el idioma por defecto", - "Released": "Estrenado", - "Returning Series": "Serie de regreso", - "Planned": "Planificado", - "In Production": "En producción", - "Ended": "Terminado", - "Canceled": "Cancelado", - "Pilot": "Piloto", + "MovieStatus": { + "Rumored": "Rumoreado", + "Planned": "Planificado", + "In Production": "En producción", + "Post Production": "Post Producción", + "Released": "Estrenado", + "Canceled": "Cancelado" + }, + "TVStatus": { + "Returning Series": "Serie de regreso", + "Planned": "Planificado", + "In Production": "En producción", + "Ended": "Terminado", + "Canceled": "Cancelado", + "Pilot": "Piloto" + }, "Male": "Masculino", "Female": "Femenino", "People": "Personas", @@ -67,5 +83,12 @@ "LastSeason": "Última temporada", "CurrentSeason": "Temporada actual", "SeasonFinale": "Final de temporada", - "SeasonOverview": "{{seasonName}} de {{title}} se estrenó el {{airDate}}" + "SeasonOverview": "{{seasonName}} de {{title}} se estrenó el {{airDate}}", + "Errors": { + "404": { + "Exclamation": "¡Ups!", + "Title": "404 - Página no encontrada", + "Description": "La página que estás buscando podría haber sido eliminada o temporalmente inabilitada." + } + } } \ No newline at end of file