Add fr, search translation, fix login title

This commit is contained in:
Simon Caron
2024-12-30 21:38:42 -05:00
parent 53b5fdda87
commit 4f62391027
8 changed files with 63 additions and 9 deletions

View File

@@ -1,8 +1,10 @@
import {commonScreenOptions, nestedTabPageScreenOptions} from "@/components/stacks/NestedTabPageStack";
import { Stack } from "expo-router";
import { Platform } from "react-native";
import { useTranslation } from "react-i18next";
export default function SearchLayout() {
const { t } = useTranslation();
return (
<Stack>
<Stack.Screen
@@ -10,7 +12,7 @@ export default function SearchLayout() {
options={{
headerShown: true,
headerLargeTitle: true,
headerTitle: "Search",
headerTitle: t("search.search_title"),
headerBlurEffect: "prominent",
headerTransparent: Platform.OS === "ios" ? true : false,
headerShadowVisible: false,

View File

@@ -37,6 +37,7 @@ import JellyseerrPoster from "@/components/posters/JellyseerrPoster";
import {Tag} from "@/components/GenreTags";
import DiscoverSlide from "@/components/jellyseerr/DiscoverSlide";
import {sortBy} from "lodash";
import { useTranslation } from "react-i18next";
type SearchType = 'Library' | 'Discover';
@@ -120,6 +121,7 @@ export default function search() {
},
[api, searchEngine, settings]
);
const { t } = useTranslation();
const navigation = useNavigation();
useLayoutEffect(() => {
@@ -283,7 +285,7 @@ export default function search() {
autoCorrect={false}
returnKeyType="done"
keyboardType="web-search"
placeholder="Search here..."
placeholder={t("search.search_hint")}
value={search}
onChangeText={(text) => setSearch(text)}
/>
@@ -462,7 +464,7 @@ export default function search() {
) : noResults && debouncedSearch.length > 0 ? (
<View>
<Text className="text-center text-lg font-bold mt-4">
No results found for
{t("search.no_results_found_for")}
</Text>
<Text className="text-xs text-purple-600 text-center">
"{debouncedSearch}"