Skip to content

Commit

Permalink
i18n for search options
Browse files Browse the repository at this point in the history
  • Loading branch information
sphinxrave committed Dec 31, 2024
1 parent 82fb5ba commit 188c467
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/react/src/components/layout/CalendarPopup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import React from "react";
const LazyCalendarContent = React.lazy(
() => import("@/components/header/calendarDialog"),
);
export function CalendarPopup() {
export function CalendarGeneratorPopup() {
const [{ open, initialQuery }, setDialog] = useAtom(calendarDialogAtom);

return (
Expand Down
4 changes: 2 additions & 2 deletions packages/react/src/components/layout/Frame.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import {
commitsSinceLastTag,
} from "~build/git";
import dayjs from "dayjs";
import { CalendarPopup } from "./CalendarPopup";
import { CalendarGeneratorPopup } from "./CalendarPopup";

export function LocationAwareReactivity() {
const location = useLocation();
Expand Down Expand Up @@ -177,7 +177,7 @@ export function Frame() {
{isMobile && <Footer />}
{miniPlayer && <MiniPlayer />}
<Toaster />
<CalendarPopup />
<CalendarGeneratorPopup />
<GlobalReactivity />
</div>
</ErrorBoundary>
Expand Down
4 changes: 4 additions & 0 deletions packages/react/src/locales/en/ui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,10 @@ views:
newest: Newest
oldest: Oldest
longest: Longest
latest: Newest
shortest: Shortest
views: Views
score: Best Match
type:
all: All
official: Official
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/routes/search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export default function Search() {
<SelectContent>
{SORT_OPTIONS.map((option) => (
<SelectItem key={option} value={option}>
{t(`search.sort.${option}`)}
{t(`views.search.sort.${option}`)}
</SelectItem>
))}
</SelectContent>
Expand Down

0 comments on commit 188c467

Please sign in to comment.