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() {
|
export default async function Home() {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<MovieList heading="Upcoming" filterUpcoming={1} sortDirection="desc" />
|
|
||||||
<MovieList
|
<MovieList
|
||||||
heading="My Watchlist"
|
heading="Nadchodzące"
|
||||||
|
filterUpcoming={1}
|
||||||
|
sortDirection="desc"
|
||||||
|
/>
|
||||||
|
<MovieList
|
||||||
|
heading="Do obejrzenia"
|
||||||
filterReleased={1}
|
filterReleased={1}
|
||||||
filterSeen={0}
|
filterSeen={0}
|
||||||
filterFavorites={0}
|
filterFavorites={0}
|
||||||
/>
|
/>
|
||||||
<MovieList heading="Seen" filterSeen={1} />
|
<MovieList heading="Obejrzane" filterSeen={1} />
|
||||||
<MovieList heading="Favorites" filterFavorites={1} />
|
<MovieList heading="Ulubione" filterFavorites={1} />
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -86,9 +86,9 @@ export const MovieList: FC<Props> = ({
|
||||||
{showFilters && (
|
{showFilters && (
|
||||||
<Dropdown
|
<Dropdown
|
||||||
items={[
|
items={[
|
||||||
{ label: "Title", value: "title" },
|
{ label: "Tytuł", value: "title" },
|
||||||
{ label: "Release Date", value: "releaseDate" },
|
{ label: "Data premiery", value: "releaseDate" },
|
||||||
{ label: "Popularity", value: "popularity" },
|
{ label: "Popularność", value: "popularity" },
|
||||||
]}
|
]}
|
||||||
defaultValue={filter}
|
defaultValue={filter}
|
||||||
callback={(value) => setFilter(value as "title")}
|
callback={(value) => setFilter(value as "title")}
|
||||||
|
|
@ -99,7 +99,7 @@ export const MovieList: FC<Props> = ({
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
{filteredMovies.length === 0 && (
|
{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 && (
|
{filteredMovies.length > 0 && (
|
||||||
<div
|
<div
|
||||||
|
|
|
||||||
|
|
@ -84,7 +84,7 @@ export const Search = () => {
|
||||||
{total_results > 5 && (
|
{total_results > 5 && (
|
||||||
<div className="col-span-full text-center">
|
<div className="col-span-full text-center">
|
||||||
<Button href={`/search?s=${query}`} onClick={handleClose}>
|
<Button href={`/search?s=${query}`} onClick={handleClose}>
|
||||||
Show more
|
Pokaż więcej
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
|
||||||
|
|
@ -3,11 +3,11 @@ import { Search } from "./components/Search";
|
||||||
|
|
||||||
const links = [
|
const links = [
|
||||||
{
|
{
|
||||||
label: "My wall",
|
label: "O mnie",
|
||||||
href: "/",
|
href: "/",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "Discover",
|
label: "Odkryj",
|
||||||
href: "/discover",
|
href: "/discover",
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
@ -41,12 +41,6 @@ export const Navbar = () => {
|
||||||
<div className="flex items-center gap-4">
|
<div className="flex items-center gap-4">
|
||||||
<div className="flex gap-4 sm:gap-6">
|
<div className="flex gap-4 sm:gap-6">
|
||||||
<Search />
|
<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>
|
</div>
|
||||||
|
|
||||||
<button className="block rounded-sm bg-gray-100 p-2.5 text-gray-600 transition hover:text- md:hidden">
|
<button className="block rounded-sm bg-gray-100 p-2.5 text-gray-600 transition hover:text- md:hidden">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue