mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-06-12 17:00:23 +01:00
Move remaining hardcoded English strings (player menus, technical-info overlay, music/now-playing, live TV, TV search badges, MPV subtitle settings, accessibility labels, not-found screen, session picker) to en.json, and correct misspelled keys (occured -> occurred, autorized -> authorized, liraries -> libraries, jellyseer -> jellyseerr) along with their usages.
36 lines
890 B
TypeScript
36 lines
890 B
TypeScript
import { Link, Stack } from "expo-router";
|
|
import { useTranslation } from "react-i18next";
|
|
import { StyleSheet } from "react-native";
|
|
|
|
import { ThemedText } from "@/components/ThemedText";
|
|
import { ThemedView } from "@/components/ThemedView";
|
|
|
|
export default function NotFoundScreen() {
|
|
const { t } = useTranslation();
|
|
|
|
return (
|
|
<>
|
|
<Stack.Screen options={{ title: t("home.oops") }} />
|
|
<ThemedView style={styles.container}>
|
|
<ThemedText type='title'>{t("not_found.title")}</ThemedText>
|
|
<Link href={"/home"} style={styles.link}>
|
|
<ThemedText type='link'>{t("not_found.go_home")}</ThemedText>
|
|
</Link>
|
|
</ThemedView>
|
|
</>
|
|
);
|
|
}
|
|
|
|
const styles = StyleSheet.create({
|
|
container: {
|
|
flex: 1,
|
|
alignItems: "center",
|
|
justifyContent: "center",
|
|
padding: 20,
|
|
},
|
|
link: {
|
|
marginTop: 15,
|
|
paddingVertical: 15,
|
|
},
|
|
});
|