Browse Source

Fix some missing translation keys

pull/497/head
mrjvs 2 years ago
parent
commit
7537ebb56c
  1. 1
      src/assets/locales/en.json
  2. 5
      src/pages/parts/search/SearchLoadingPart.tsx
  3. 8
      src/pages/parts/settings/ThemePart.tsx

1
src/assets/locales/en.json

@ -105,6 +105,7 @@ @@ -105,6 +105,7 @@
"night": ["Night title"]
},
"search": {
"loading": "Loading...",
"sectionTitle": "Search results",
"allResults": "That's all we have!",
"noResults": "We couldn't find anything!",

5
src/pages/parts/search/SearchLoadingPart.tsx

@ -5,6 +5,9 @@ import { Loading } from "@/components/layout/Loading"; @@ -5,6 +5,9 @@ import { Loading } from "@/components/layout/Loading";
export function SearchLoadingPart() {
const { t } = useTranslation();
return (
<Loading className="mb-24 mt-40 " text={t("search.loading") || "..."} />
<Loading
className="mb-24 mt-40"
text={t("home.search.loading") ?? undefined}
/>
);
}

8
src/pages/parts/settings/ThemePart.tsx

@ -7,19 +7,19 @@ import { Heading1 } from "@/components/utils/Text"; @@ -7,19 +7,19 @@ import { Heading1 } from "@/components/utils/Text";
const availableThemes = [
{
id: "blue",
key: "settings.themes.blue",
key: "settings.appearance.themes.blue",
},
{
id: "teal",
key: "settings.themes.teal",
key: "settings.appearance.themes.teal",
},
{
id: "red",
key: "settings.themes.red",
key: "settings.appearance.themes.red",
},
{
id: "gray",
key: "settings.themes.gray",
key: "settings.appearance.themes.gray",
},
];

Loading…
Cancel
Save