From 9b1f2a98e59426c6e8100ae5e389c41082e88b29 Mon Sep 17 00:00:00 2001 From: Simon Caron <8635747+simoncaron@users.noreply.github.com> Date: Tue, 31 Dec 2024 14:43:40 -0500 Subject: [PATCH] Update translation key casing to snake_case --- app/(auth)/(tabs)/(home)/index.tsx | 18 +++++++++--------- app/(auth)/(tabs)/_layout.tsx | 2 +- translations/en.json | 20 ++++++++++---------- translations/fr.json | 20 ++++++++++---------- translations/sv.json | 14 +++++++------- 5 files changed, 37 insertions(+), 37 deletions(-) diff --git a/app/(auth)/(tabs)/(home)/index.tsx b/app/(auth)/(tabs)/(home)/index.tsx index a1794fc9..262cc249 100644 --- a/app/(auth)/(tabs)/(home)/index.tsx +++ b/app/(auth)/(tabs)/(home)/index.tsx @@ -215,7 +215,7 @@ export default function index() { const latestMediaViews = collections.map((c) => { const includeItemTypes: BaseItemKind[] = c.CollectionType === "tvshows" ? ["Series"] : ["Movie"]; - const title = t("home.recentlyAddedIn", {libraryName: c.Name}); + const title = t("home.recently_added_in", {libraryName: c.Name}); const queryKey = [ "home", "recentlyAddedIn" + c.CollectionType, @@ -232,7 +232,7 @@ export default function index() { const ss: Section[] = [ { - title: t("home.continueWatching"), + title: t("home.continue_watching"), queryKey: ["home", "resumeItems"], queryFn: async () => ( @@ -246,7 +246,7 @@ export default function index() { orientation: "horizontal", }, { - title: t("home.nextUp"), + title: t("home.next_up"), queryKey: ["home", "nextUp-all"], queryFn: async () => ( @@ -273,7 +273,7 @@ export default function index() { } as Section) ) || []), { - title: t("home.suggestedMovies"), + title: t("home.suggested_movies"), queryKey: ["home", "suggestedMovies", user?.Id], queryFn: async () => ( @@ -288,7 +288,7 @@ export default function index() { orientation: "vertical", }, { - title: t("home.suggestedEpisodes"), + title: t("home.suggested_episodes"), queryKey: ["home", "suggestedEpisodes", user?.Id], queryFn: async () => { try { @@ -314,9 +314,9 @@ export default function index() { if (isConnected === false) { return ( - {t("home.noInternet")} + {t("home.no_internet")} - {t("home.noInternetMessage")} + {t("home.no_internet_message")}