Translate UI text to Polish: update headings and messages in MovieList, Navbar, and Search components for improved localization.
This commit is contained in:
parent
52d032d518
commit
eee7899840
|
|
@ -3,15 +3,19 @@ import { MovieList } from "@/components/molecules/MovieList";
|
|||
export default async function Home() {
|
||||
return (
|
||||
<>
|
||||
<MovieList heading="Upcoming" filterUpcoming={1} sortDirection="desc" />
|
||||
<MovieList
|
||||
heading="My Watchlist"
|
||||
heading="Nadchodzące"
|
||||
filterUpcoming={1}
|
||||
sortDirection="desc"
|
||||
/>
|
||||
<MovieList
|
||||
heading="Do obejrzenia"
|
||||
filterReleased={1}
|
||||
filterSeen={0}
|
||||
filterFavorites={0}
|
||||
/>
|
||||
<MovieList heading="Seen" filterSeen={1} />
|
||||
<MovieList heading="Favorites" filterFavorites={1} />
|
||||
<MovieList heading="Obejrzane" filterSeen={1} />
|
||||
<MovieList heading="Ulubione" filterFavorites={1} />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -86,9 +86,9 @@ export const MovieList: FC<Props> = ({
|
|||
{showFilters && (
|
||||
<Dropdown
|
||||
items={[
|
||||
{ label: "Title", value: "title" },
|
||||
{ label: "Release Date", value: "releaseDate" },
|
||||
{ label: "Popularity", value: "popularity" },
|
||||
{ label: "Tytuł", value: "title" },
|
||||
{ label: "Data premiery", value: "releaseDate" },
|
||||
{ label: "Popularność", value: "popularity" },
|
||||
]}
|
||||
defaultValue={filter}
|
||||
callback={(value) => setFilter(value as "title")}
|
||||
|
|
@ -99,7 +99,7 @@ export const MovieList: FC<Props> = ({
|
|||
</div>
|
||||
)}
|
||||
{filteredMovies.length === 0 && (
|
||||
<p className="text-text/60 text-sm">No movies found</p>
|
||||
<p className="text-text/60 text-sm">Brak filmów</p>
|
||||
)}
|
||||
{filteredMovies.length > 0 && (
|
||||
<div
|
||||
|
|
|
|||
|
|
@ -84,7 +84,7 @@ export const Search = () => {
|
|||
{total_results > 5 && (
|
||||
<div className="col-span-full text-center">
|
||||
<Button href={`/search?s=${query}`} onClick={handleClose}>
|
||||
Show more
|
||||
Pokaż więcej
|
||||
</Button>
|
||||
</div>
|
||||
)}
|
||||
|
|
|
|||
|
|
@ -3,11 +3,11 @@ import { Search } from "./components/Search";
|
|||
|
||||
const links = [
|
||||
{
|
||||
label: "My wall",
|
||||
label: "O mnie",
|
||||
href: "/",
|
||||
},
|
||||
{
|
||||
label: "Discover",
|
||||
label: "Odkryj",
|
||||
href: "/discover",
|
||||
},
|
||||
];
|
||||
|
|
@ -41,12 +41,6 @@ export const Navbar = () => {
|
|||
<div className="flex items-center gap-4">
|
||||
<div className="flex gap-4 sm:gap-6">
|
||||
<Search />
|
||||
<a
|
||||
className="block border-b-2 border-secondary-700 px-5 py-2.5 text-sm font-medium text-white transition hover:bg-secondary-700"
|
||||
href="#"
|
||||
>
|
||||
Random Movie
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<button className="block rounded-sm bg-gray-100 p-2.5 text-gray-600 transition hover:text- md:hidden">
|
||||
|
|
|
|||
Loading…
Reference in New Issue