diff --git a/apps/readest-app/public/locales/ja/translation.json b/apps/readest-app/public/locales/ja/translation.json index aaebe380..becaa65a 100644 --- a/apps/readest-app/public/locales/ja/translation.json +++ b/apps/readest-app/public/locales/ja/translation.json @@ -99,7 +99,7 @@ "Select Books": "書籍を選択", "Select Multiple Books": "複数の書籍を選択", "Sepia": "セピア", - "Serif Font": "明朝体", + "Serif Font": "セリフ体", "Show Book Details": "書籍の詳細を表示", "Sidebar": "サイドバー", "Sign In": "サインイン", diff --git a/apps/readest-app/src/app/reader/components/settings/FontDropDown.tsx b/apps/readest-app/src/app/reader/components/settings/FontDropDown.tsx index e1689816..f77deef1 100644 --- a/apps/readest-app/src/app/reader/components/settings/FontDropDown.tsx +++ b/apps/readest-app/src/app/reader/components/settings/FontDropDown.tsx @@ -8,7 +8,7 @@ import { useDefaultIconSize, useResponsiveSize } from '@/hooks/useResponsiveSize interface DropdownProps { family?: string; selected: string; - options: string[]; + options: { option: string; label: string }[]; moreOptions?: string[]; onSelect: (option: string) => void; onGetFontFamily: (option: string, family: string) => string; @@ -25,26 +25,31 @@ const FontDropdown: React.FC = ({ const _ = useTranslation(); const iconSize16 = useResponsiveSize(16); const defaultIconSize = useDefaultIconSize(); + const selectedOption = options.find((option) => option.option === selected)!; return (