From fcb43c0be82c461d4fcefc1bb2b92aaf30738efa Mon Sep 17 00:00:00 2001 From: Gauvain Date: Wed, 15 Jul 2026 00:20:15 +0200 Subject: [PATCH] fix(i18n): correct misspelled translation keys and their usages --- .../(home)/settings/appearance/hide-libraries/page.tsx | 2 +- .../(tabs)/(home)/settings/hide-libraries/page.tsx | 2 +- app/(auth)/player/direct-player.tsx | 2 +- components/login/Login.tsx | 2 +- components/login/TVLogin.tsx | 8 ++++---- components/settings/QuickConnect.tsx | 2 +- providers/JellyfinProvider.tsx | 2 +- translations/en.json | 10 +++++----- 8 files changed, 15 insertions(+), 15 deletions(-) diff --git a/app/(auth)/(tabs)/(home)/settings/appearance/hide-libraries/page.tsx b/app/(auth)/(tabs)/(home)/settings/appearance/hide-libraries/page.tsx index 24a3011e3..d0109fb7e 100644 --- a/app/(auth)/(tabs)/(home)/settings/appearance/hide-libraries/page.tsx +++ b/app/(auth)/(tabs)/(home)/settings/appearance/hide-libraries/page.tsx @@ -71,7 +71,7 @@ export default function AppearanceHideLibrariesPage() { ))} - {t("home.settings.other.select_liraries_you_want_to_hide")} + {t("home.settings.other.select_libraries_you_want_to_hide")} diff --git a/app/(auth)/(tabs)/(home)/settings/hide-libraries/page.tsx b/app/(auth)/(tabs)/(home)/settings/hide-libraries/page.tsx index e7a61bde3..fe777462f 100644 --- a/app/(auth)/(tabs)/(home)/settings/hide-libraries/page.tsx +++ b/app/(auth)/(tabs)/(home)/settings/hide-libraries/page.tsx @@ -60,7 +60,7 @@ export default function HideLibrariesPage() { ))} - {t("home.settings.other.select_liraries_you_want_to_hide")} + {t("home.settings.other.select_libraries_you_want_to_hide")} ); diff --git a/app/(auth)/player/direct-player.tsx b/app/(auth)/player/direct-player.tsx index 515e39d15..1a29ffc02 100644 --- a/app/(auth)/player/direct-player.tsx +++ b/app/(auth)/player/direct-player.tsx @@ -1318,7 +1318,7 @@ export default function DirectPlayerPage() { console.error("Video Error:", e.nativeEvent); Alert.alert( t("player.error"), - t("player.an_error_occured_while_playing_the_video"), + t("player.an_error_occurred_while_playing_the_video"), ); writeToLog("ERROR", "Video Error", e.nativeEvent); }} diff --git a/components/login/Login.tsx b/components/login/Login.tsx index 7cf5f43fc..da634ad09 100644 --- a/components/login/Login.tsx +++ b/components/login/Login.tsx @@ -146,7 +146,7 @@ export const Login: React.FC = () => { } else { Alert.alert( t("login.connection_failed"), - t("login.an_unexpected_error_occured"), + t("login.an_unexpected_error_occurred"), ); } } finally { diff --git a/components/login/TVLogin.tsx b/components/login/TVLogin.tsx index 4ce611924..00bd7f65f 100644 --- a/components/login/TVLogin.tsx +++ b/components/login/TVLogin.tsx @@ -437,7 +437,7 @@ export const TVLogin: React.FC = () => { } else { Alert.alert( t("login.connection_failed"), - t("login.an_unexpected_error_occured"), + t("login.an_unexpected_error_occurred"), ); } } finally { @@ -499,7 +499,7 @@ export const TVLogin: React.FC = () => { const message = error instanceof Error ? error.message - : t("login.an_unexpected_error_occured"); + : t("login.an_unexpected_error_occurred"); Alert.alert(t("login.connection_failed"), message); goToQRScreen(); } finally { @@ -523,7 +523,7 @@ export const TVLogin: React.FC = () => { } else { Alert.alert( t("login.connection_failed"), - t("login.an_unexpected_error_occured"), + t("login.an_unexpected_error_occurred"), ); } } finally { @@ -768,7 +768,7 @@ export const TVLogin: React.FC = () => { const message = error instanceof Error ? error.message - : t("login.an_unexpected_error_occured"); + : t("login.an_unexpected_error_occurred"); Alert.alert(t("login.connection_failed"), message); goToQRScreen(); }); diff --git a/components/settings/QuickConnect.tsx b/components/settings/QuickConnect.tsx index 725e7e6fa..643a902d2 100644 --- a/components/settings/QuickConnect.tsx +++ b/components/settings/QuickConnect.tsx @@ -58,7 +58,7 @@ export const QuickConnect: React.FC = ({ ...props }) => { successHapticFeedback(); Alert.alert( t("home.settings.quick_connect.success"), - t("home.settings.quick_connect.quick_connect_autorized"), + t("home.settings.quick_connect.quick_connect_authorized"), ); setQuickConnectCode(undefined); bottomSheetModalRef?.current?.close(); diff --git a/providers/JellyfinProvider.tsx b/providers/JellyfinProvider.tsx index 52647bde7..137709948 100644 --- a/providers/JellyfinProvider.tsx +++ b/providers/JellyfinProvider.tsx @@ -386,7 +386,7 @@ export const JellyfinProvider: React.FC<{ children: ReactNode }> = ({ default: throw new Error( t( - "login.an_unexpected_error_occured_did_you_enter_the_correct_url", + "login.an_unexpected_error_occurred_did_you_enter_the_correct_url", ), ); } diff --git a/translations/en.json b/translations/en.json index ba3ffcebf..5c92531e0 100644 --- a/translations/en.json +++ b/translations/en.json @@ -16,14 +16,14 @@ "got_it": "Got it", "connection_failed": "Connection failed", "could_not_connect_to_server": "Could not connect to the server. Please check the URL and your network connection.", - "an_unexpected_error_occured": "An unexpected error occurred", + "an_unexpected_error_occurred": "An unexpected error occurred", "change_server": "Change server", "invalid_username_or_password": "Invalid username or password", "user_does_not_have_permission_to_log_in": "User does not have permission to log in", "server_is_taking_too_long_to_respond_try_again_later": "Server is taking too long to respond, try again later", "server_received_too_many_requests_try_again_later": "Server received too many requests, try again later.", "there_is_a_server_error": "There is a server error", - "an_unexpected_error_occured_did_you_enter_the_correct_url": "An unexpected error occurred. Did you enter the server URL correctly?", + "an_unexpected_error_occurred_did_you_enter_the_correct_url": "An unexpected error occurred. Did you enter the server URL correctly?", "too_old_server_text": "Unsupported Jellyfin server discovered", "too_old_server_description": "Please update Jellyfin to the latest version" }, @@ -188,7 +188,7 @@ "authorize_button": "Authorize Quick Connect", "enter_the_quick_connect_code": "Enter the Quick Connect code...", "success": "Success", - "quick_connect_autorized": "Quick Connect authorized", + "quick_connect_authorized": "Quick Connect authorized", "error": "Error", "invalid_code": "Invalid code", "authorize": "Authorize" @@ -298,7 +298,7 @@ "show_custom_menu_links": "Show custom menu links", "show_large_home_carousel": "Show large home carousel (beta)", "hide_libraries": "Hide libraries", - "select_liraries_you_want_to_hide": "Select the libraries you want to hide from the Library tab and home page sections.", + "select_libraries_you_want_to_hide": "Select the libraries you want to hide from the Library tab and home page sections.", "disable_haptic_feedback": "Disable haptic feedback", "default_quality": "Default quality", "default_playback_speed": "Default playback speed", @@ -598,7 +598,7 @@ "mpv_player_title": "MPV player", "error": "Error", "failed_to_get_stream_url": "Failed to get the stream URL", - "an_error_occured_while_playing_the_video": "An error occurred while playing the video. Check logs in settings.", + "an_error_occurred_while_playing_the_video": "An error occurred while playing the video. Check logs in settings.", "client_error": "Client error", "could_not_create_stream_for_chromecast": "Could not create a stream for Chromecast", "message_from_server": "Message from server: {{message}}",