mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-04-21 16:24:41 +01:00
Add fr, search translation, fix login title
This commit is contained in:
@@ -56,7 +56,7 @@ type Section = ScrollingCollectionListSection | MediaListSection;
|
||||
export default function index() {
|
||||
const router = useRouter();
|
||||
|
||||
const { i18n, t } = useTranslation();
|
||||
const { t } = useTranslation();
|
||||
|
||||
const api = useAtomValue(apiAtom);
|
||||
const user = useAtomValue(userAtom);
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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}"
|
||||
|
||||
@@ -198,14 +198,13 @@ const CredentialsSchema = z.object({
|
||||
<View className="px-4 -mt-20 w-full">
|
||||
<View className="flex flex-col space-y-2">
|
||||
<Text className="text-2xl font-bold -mb-2">
|
||||
{t("login.login_title")}
|
||||
<>
|
||||
{serverName ? (
|
||||
<>
|
||||
{" to "}
|
||||
{t("login.login_to_title") + " "}
|
||||
<Text className="text-purple-600">{serverName}</Text>
|
||||
</>
|
||||
) : null}
|
||||
) : t("login.login_title")}
|
||||
</>
|
||||
</Text>
|
||||
<Text className="text-xs text-neutral-400">{serverURL}</Text>
|
||||
@@ -251,7 +250,7 @@ const CredentialsSchema = z.object({
|
||||
onPress={handleQuickConnect}
|
||||
className="w-full mb-2"
|
||||
>
|
||||
Use Quick Connect
|
||||
{t("login.use_quick_connect")}
|
||||
</Button>
|
||||
<Button onPress={handleLogin} loading={loading}>
|
||||
{t("login.login_button")}
|
||||
|
||||
Reference in New Issue
Block a user