From d3bc2ac5d548987a40a111f957a54f518940535a Mon Sep 17 00:00:00 2001 From: Uruk Date: Wed, 14 Jan 2026 14:12:36 +0100 Subject: [PATCH] refactor: move player translations to common section Relocates player-specific translation keys from the "player" namespace to the "common" namespace to improve reusability across different components. All player-related strings (error messages, playback controls, download prompts) are now accessible as common translations, enabling their use throughout the application without namespace-specific imports. --- translations/en.json | 40 +++++++++++++++++++--------------------- 1 file changed, 19 insertions(+), 21 deletions(-) diff --git a/translations/en.json b/translations/en.json index a6d4bdab..5b99e6df 100644 --- a/translations/en.json +++ b/translations/en.json @@ -29,7 +29,25 @@ "skip_outro": "Skip Outro", "skip_recap": "Skip Recap", "skip_commercial": "Skip Commercial", - "skip_preview": "Skip Preview" + "skip_preview": "Skip Preview", + "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.", + "client_error": "Client Error", + "could_not_create_stream_for_chromecast": "Could not create a stream for Chromecast", + "message_from_server": "Message from Server: {{message}}", + "next_episode": "Next Episode", + "refresh_tracks": "Refresh Tracks", + "audio_tracks": "Audio Tracks:", + "playback_state": "Playback State:", + "index": "Index:", + "continue_watching": "Continue Watching", + "go_back": "Go Back", + "downloaded_file_title": "You have this file downloaded", + "downloaded_file_message": "Do you want to play the downloaded file?", + "downloaded_file_yes": "Yes", + "downloaded_file_no": "No", + "downloaded_file_cancel": "Cancel" }, "server": { "enter_url_to_jellyfin_server": "Enter the URL to your Jellyfin server", @@ -612,26 +630,6 @@ "custom_links": { "no_links": "No Links" }, - "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.", - "client_error": "Client Error", - "could_not_create_stream_for_chromecast": "Could not create a stream for Chromecast", - "message_from_server": "Message from Server: {{message}}", - "next_episode": "Next Episode", - "refresh_tracks": "Refresh Tracks", - "audio_tracks": "Audio Tracks:", - "playback_state": "Playback State:", - "index": "Index:", - "continue_watching": "Continue Watching", - "go_back": "Go Back", - "downloaded_file_title": "You have this file downloaded", - "downloaded_file_message": "Do you want to play the downloaded file?", - "downloaded_file_yes": "Yes", - "downloaded_file_no": "No", - "downloaded_file_cancel": "Cancel" - }, "item_card": { "next_up": "Next Up", "no_items_to_display": "No Items to Display",