Update Current Translated Messages with UI Changes

This commit is contained in:
Simon Caron
2024-12-30 20:06:56 -05:00
parent 4b18bad3bc
commit 9b4590c876
5 changed files with 10 additions and 21 deletions

View File

@@ -215,7 +215,7 @@ export default function index() {
const latestMediaViews = collections.map((c) => {
const includeItemTypes: BaseItemKind[] =
c.CollectionType === "tvshows" ? ["Series"] : ["Movie"];
const title = t("recentlyAdded" + c.Name);
const title = t("home.recentlyAddedIn", {libraryName: c.Name});
const queryKey = [
"home",
"recentlyAddedIn" + c.CollectionType,

View File

@@ -22,12 +22,13 @@ import {
import { z } from "zod";
const { t, i18n } = useTranslation();
const CredentialsSchema = z.object({
username: z.string().min(1, "Username is required"),
username: z.string().min(1, t("login.username_required")),
});
const Login: React.FC = () => {
const { t, i18n } = useTranslation();
const { setServer, login, removeServer, initiateQuickConnect } =
useJellyfin();
const [api] = useAtom(apiAtom);
@@ -186,7 +187,7 @@ const Login: React.FC = () => {
]);
}
} catch (error) {
Alert.alert("Error", "Failed to initiate Quick Connect");
Alert.alert(t("login.error_title"), "Failed to initiate Quick Connect");
}
};
@@ -201,7 +202,7 @@ const Login: React.FC = () => {
<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_button")}
{t("login.login_title")}
<>
{serverName ? (
<>