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 ? (
<>

View File

@@ -2,16 +2,12 @@
"login": {
"username_required": "Username is required",
"error_title": "Error",
"url_error_message": "URL needs to start with http or https.",
"login": "Log in",
"login_subtitle": "Log in to any user account",
"login_title": "Log in",
"username_placeholder": "Username",
"password_placeholder": "Password",
"login_button": "Log in"
},
"server": {
"server_label": "Server: {{serverURL}}",
"change_server": "Change server",
"enter_url_to_jellyfin_server": "Enter the URL to your Jellyfin server",
"server_url_placeholder": "Server URL",
"server_url_hint": "Make sure to include http or https",
@@ -26,11 +22,9 @@
"errorMessage": "Something went wrong.\nPlease log out and in again.",
"continueWatching": "Continue Watching",
"nextUp": "Next Up",
"recentlyAddedMovies": "Recently Added in Movies",
"recentlyAddedSeries": "Recently Added in Series",
"recentlyAddedIn": "Recently Added in {{libraryName}}",
"suggestedMovies": "Suggested Movies",
"suggestedEpisodes": "Suggested Episodes"
},
"tabs": {
"home": "Home",

View File

@@ -2,16 +2,12 @@
"login": {
"username_required": "Användarnamn krävs",
"error_title": "Fel",
"url_error_message": "URL måste börja med http eller https.",
"login_title": "Logga in",
"login_subtitle": "Logga in på ett användarkonto",
"username_placeholder": "Användarnamn",
"password_placeholder": "Lösenord",
"login_button": "Logga in"
},
"server": {
"server_label": "Server: {{serverURL}}",
"change_server": "Byt server",
"server_url_placeholder": "Server URL",
"server_url_hint": "Server URL kräver http eller https",
"connect_button": "Anslut"
@@ -25,9 +21,7 @@
"errorMessage": "Något gick fel.\nLogga ut och in igen.",
"continueWatching": "Fortsätt titta",
"nextUp": "Nästa upp",
"recentlyAddedMovies": "Nyligen tillagt i Filmer",
"recentlyAddedTVShows": "Nyligen tillagt i TV-Serier",
"suggestions": "Förslag"
"recentlyAddedIn": "Nyligen tillagt i {{libraryName}}"
},
"tabs": {
"home": "Hem",

View File

@@ -99,7 +99,7 @@ const loadSettings = (): Settings => {
usePopularPlugin: false,
deviceProfile: "Expo",
mediaListCollectionIds: [],
preferedLanguage: getLocales()[0] || "en",
preferedLanguage: getLocales()[0].languageCode || "en",
searchEngine: "Jellyfin",
marlinServerUrl: "",
openInVLC: false,