Explorar o código

fix: toast on successful import

Sv443 hai 10 meses
pai
achega
bcc0bca69a

+ 51 - 37
assets/translations/README.md

@@ -16,15 +16,15 @@ To submit or edit a translation, please follow [this guide](../../contributing.m
 ### Translation progress:
 |   | Locale | Translated keys | Based on |
 | :----: | ------ | --------------- | :------: |
-| ─ | [`en_US`](./en_US.json) | 271 (default locale) |  |
-| ‼️ | [`de_DE`](./de_DE.json) | `209/271` (77.1%) | ─ |
-| ─ | [`en_UK`](./en_UK.json) | `271` (100%) | `en_US` |
-| ‼️ | [`es_ES`](./es_ES.json) | `209/271` (77.1%) | ─ |
-| ‼️ | [`fr_FR`](./fr_FR.json) | `209/271` (77.1%) | ─ |
-| ‼️ | [`hi_IN`](./hi_IN.json) | `209/271` (77.1%) | ─ |
-| ‼️ | [`ja_JA`](./ja_JA.json) | `209/271` (77.1%) | ─ |
-| ‼️ | [`pt_BR`](./pt_BR.json) | `209/271` (77.1%) | ─ |
-| ‼️ | [`zh_CN`](./zh_CN.json) | `209/271` (77.1%) | ─ |
+| ─ | [`en_US`](./en_US.json) | 272 (default locale) |  |
+| ‼️ | [`de_DE`](./de_DE.json) | `208/272` (76.5%) | ─ |
+| ─ | [`en_UK`](./en_UK.json) | `272` (100%) | `en_US` |
+| ‼️ | [`es_ES`](./es_ES.json) | `208/272` (76.5%) | ─ |
+| ‼️ | [`fr_FR`](./fr_FR.json) | `208/272` (76.5%) | ─ |
+| ‼️ | [`hi_IN`](./hi_IN.json) | `208/272` (76.5%) | ─ |
+| ‼️ | [`ja_JA`](./ja_JA.json) | `208/272` (76.5%) | ─ |
+| ‼️ | [`pt_BR`](./pt_BR.json) | `208/272` (76.5%) | ─ |
+| ‼️ | [`zh_CN`](./zh_CN.json) | `208/272` (76.5%) | ─ |
 
 <sub>
 ✅ - Fully translated
@@ -45,16 +45,18 @@ This means to figure out which keys are untranslated, you will need to manually
 
 ### Missing keys:
 
-<details><summary><code>de_DE</code> - 62 missing keys <i>(click to show)</i></summary><br>
+<details><summary><code>de_DE</code> - 64 missing keys <i>(click to show)</i></summary><br>
 
 | Key | English text |
 | --- | ------------ |
-| `bytm_config_export_import_title` | `Export/Import Configuration` |
+| `bytm_config_export_import_title` | `Export or Import Configuration` |
 | `bytm_config_import_desc` | `Paste the configuration you want to import into the field below, then click the import button:` |
 | `bytm_config_export_desc` | `Copy the following text to export your configuration. Warning: it may contain sensitive data.` |
 | `export_import` | `Export/Import` |
 | `click_to_reveal` | `(click to reveal)` |
 | `start_import_tooltip` | `Click to import the data you pasted above` |
+| `import_success` | `Successfully imported the data` |
+| `import_success_confirm_reload` | `Successfully imported the data.\nDo you want to reload the page now to apply changes?` |
 | `copy` | `Copy` |
 | `copied_to_clipboard` | `Copied to clipboard!` |
 | `close_tooltip` | `Click to close` |
@@ -63,7 +65,7 @@ This means to figure out which keys are untranslated, you will need to manually
 | `remove_entry` | `Remove this entry` |
 | `edit_entry` | `Edit this entry` |
 | `open_lyrics_search_prompt` | `Enter the song title and artist to search for the lyrics:` |
-| `auto_like_channels_dialog_title` | `Auto-liked channels` |
+| `auto_like_channels_dialog_title` | `Auto-liked Channels` |
 | `auto_like_channels_dialog_desc` | `Here you can see what channels you have set to auto-like and you can edit, enable, disable and remove them.\nYou can also manually create entries, though it's easier to just visit the channel page and click the button there.` |
 | `auto_like` | `Auto-like` |
 | `auto_like_button_tooltip_enabled` | `Click to disable auto-liking. Shift-click to open the management dialog.` |
@@ -79,7 +81,7 @@ This means to figure out which keys are untranslated, you will need to manually
 | `auto_liked_a_channels_song` | `Liked song by %1` |
 | `auto_liked_a_channels_video` | `Liked video by %1` |
 | `auto_like_export_or_import_tooltip` | `Export or import your auto-liked channels` |
-| `auto_like_export_import_title` | `Export/Import auto-liked channels` |
+| `auto_like_export_import_title` | `Export or Import Auto-liked Channels` |
 | `auto_like_export_desc` | `Copy the following text to export your auto-liked channels.` |
 | `auto_like_import_desc` | `Paste the auto-liked channels you want to import into the field below, then click the import button:` |
 | `vote_label_likes` | `%1 likes` |
@@ -114,16 +116,18 @@ This means to figure out which keys are untranslated, you will need to manually
 
 <br></details>
 
-<details><summary><code>es_ES</code> - 62 missing keys <i>(click to show)</i></summary><br>
+<details><summary><code>es_ES</code> - 64 missing keys <i>(click to show)</i></summary><br>
 
 | Key | English text |
 | --- | ------------ |
-| `bytm_config_export_import_title` | `Export/Import Configuration` |
+| `bytm_config_export_import_title` | `Export or Import Configuration` |
 | `bytm_config_import_desc` | `Paste the configuration you want to import into the field below, then click the import button:` |
 | `bytm_config_export_desc` | `Copy the following text to export your configuration. Warning: it may contain sensitive data.` |
 | `export_import` | `Export/Import` |
 | `click_to_reveal` | `(click to reveal)` |
 | `start_import_tooltip` | `Click to import the data you pasted above` |
+| `import_success` | `Successfully imported the data` |
+| `import_success_confirm_reload` | `Successfully imported the data.\nDo you want to reload the page now to apply changes?` |
 | `copy` | `Copy` |
 | `copied_to_clipboard` | `Copied to clipboard!` |
 | `close_tooltip` | `Click to close` |
@@ -132,7 +136,7 @@ This means to figure out which keys are untranslated, you will need to manually
 | `remove_entry` | `Remove this entry` |
 | `edit_entry` | `Edit this entry` |
 | `open_lyrics_search_prompt` | `Enter the song title and artist to search for the lyrics:` |
-| `auto_like_channels_dialog_title` | `Auto-liked channels` |
+| `auto_like_channels_dialog_title` | `Auto-liked Channels` |
 | `auto_like_channels_dialog_desc` | `Here you can see what channels you have set to auto-like and you can edit, enable, disable and remove them.\nYou can also manually create entries, though it's easier to just visit the channel page and click the button there.` |
 | `auto_like` | `Auto-like` |
 | `auto_like_button_tooltip_enabled` | `Click to disable auto-liking. Shift-click to open the management dialog.` |
@@ -148,7 +152,7 @@ This means to figure out which keys are untranslated, you will need to manually
 | `auto_liked_a_channels_song` | `Liked song by %1` |
 | `auto_liked_a_channels_video` | `Liked video by %1` |
 | `auto_like_export_or_import_tooltip` | `Export or import your auto-liked channels` |
-| `auto_like_export_import_title` | `Export/Import auto-liked channels` |
+| `auto_like_export_import_title` | `Export or Import Auto-liked Channels` |
 | `auto_like_export_desc` | `Copy the following text to export your auto-liked channels.` |
 | `auto_like_import_desc` | `Paste the auto-liked channels you want to import into the field below, then click the import button:` |
 | `vote_label_likes` | `%1 likes` |
@@ -183,16 +187,18 @@ This means to figure out which keys are untranslated, you will need to manually
 
 <br></details>
 
-<details><summary><code>fr_FR</code> - 62 missing keys <i>(click to show)</i></summary><br>
+<details><summary><code>fr_FR</code> - 64 missing keys <i>(click to show)</i></summary><br>
 
 | Key | English text |
 | --- | ------------ |
-| `bytm_config_export_import_title` | `Export/Import Configuration` |
+| `bytm_config_export_import_title` | `Export or Import Configuration` |
 | `bytm_config_import_desc` | `Paste the configuration you want to import into the field below, then click the import button:` |
 | `bytm_config_export_desc` | `Copy the following text to export your configuration. Warning: it may contain sensitive data.` |
 | `export_import` | `Export/Import` |
 | `click_to_reveal` | `(click to reveal)` |
 | `start_import_tooltip` | `Click to import the data you pasted above` |
+| `import_success` | `Successfully imported the data` |
+| `import_success_confirm_reload` | `Successfully imported the data.\nDo you want to reload the page now to apply changes?` |
 | `copy` | `Copy` |
 | `copied_to_clipboard` | `Copied to clipboard!` |
 | `close_tooltip` | `Click to close` |
@@ -201,7 +207,7 @@ This means to figure out which keys are untranslated, you will need to manually
 | `remove_entry` | `Remove this entry` |
 | `edit_entry` | `Edit this entry` |
 | `open_lyrics_search_prompt` | `Enter the song title and artist to search for the lyrics:` |
-| `auto_like_channels_dialog_title` | `Auto-liked channels` |
+| `auto_like_channels_dialog_title` | `Auto-liked Channels` |
 | `auto_like_channels_dialog_desc` | `Here you can see what channels you have set to auto-like and you can edit, enable, disable and remove them.\nYou can also manually create entries, though it's easier to just visit the channel page and click the button there.` |
 | `auto_like` | `Auto-like` |
 | `auto_like_button_tooltip_enabled` | `Click to disable auto-liking. Shift-click to open the management dialog.` |
@@ -217,7 +223,7 @@ This means to figure out which keys are untranslated, you will need to manually
 | `auto_liked_a_channels_song` | `Liked song by %1` |
 | `auto_liked_a_channels_video` | `Liked video by %1` |
 | `auto_like_export_or_import_tooltip` | `Export or import your auto-liked channels` |
-| `auto_like_export_import_title` | `Export/Import auto-liked channels` |
+| `auto_like_export_import_title` | `Export or Import Auto-liked Channels` |
 | `auto_like_export_desc` | `Copy the following text to export your auto-liked channels.` |
 | `auto_like_import_desc` | `Paste the auto-liked channels you want to import into the field below, then click the import button:` |
 | `vote_label_likes` | `%1 likes` |
@@ -252,16 +258,18 @@ This means to figure out which keys are untranslated, you will need to manually
 
 <br></details>
 
-<details><summary><code>hi_IN</code> - 62 missing keys <i>(click to show)</i></summary><br>
+<details><summary><code>hi_IN</code> - 64 missing keys <i>(click to show)</i></summary><br>
 
 | Key | English text |
 | --- | ------------ |
-| `bytm_config_export_import_title` | `Export/Import Configuration` |
+| `bytm_config_export_import_title` | `Export or Import Configuration` |
 | `bytm_config_import_desc` | `Paste the configuration you want to import into the field below, then click the import button:` |
 | `bytm_config_export_desc` | `Copy the following text to export your configuration. Warning: it may contain sensitive data.` |
 | `export_import` | `Export/Import` |
 | `click_to_reveal` | `(click to reveal)` |
 | `start_import_tooltip` | `Click to import the data you pasted above` |
+| `import_success` | `Successfully imported the data` |
+| `import_success_confirm_reload` | `Successfully imported the data.\nDo you want to reload the page now to apply changes?` |
 | `copy` | `Copy` |
 | `copied_to_clipboard` | `Copied to clipboard!` |
 | `close_tooltip` | `Click to close` |
@@ -270,7 +278,7 @@ This means to figure out which keys are untranslated, you will need to manually
 | `remove_entry` | `Remove this entry` |
 | `edit_entry` | `Edit this entry` |
 | `open_lyrics_search_prompt` | `Enter the song title and artist to search for the lyrics:` |
-| `auto_like_channels_dialog_title` | `Auto-liked channels` |
+| `auto_like_channels_dialog_title` | `Auto-liked Channels` |
 | `auto_like_channels_dialog_desc` | `Here you can see what channels you have set to auto-like and you can edit, enable, disable and remove them.\nYou can also manually create entries, though it's easier to just visit the channel page and click the button there.` |
 | `auto_like` | `Auto-like` |
 | `auto_like_button_tooltip_enabled` | `Click to disable auto-liking. Shift-click to open the management dialog.` |
@@ -286,7 +294,7 @@ This means to figure out which keys are untranslated, you will need to manually
 | `auto_liked_a_channels_song` | `Liked song by %1` |
 | `auto_liked_a_channels_video` | `Liked video by %1` |
 | `auto_like_export_or_import_tooltip` | `Export or import your auto-liked channels` |
-| `auto_like_export_import_title` | `Export/Import auto-liked channels` |
+| `auto_like_export_import_title` | `Export or Import Auto-liked Channels` |
 | `auto_like_export_desc` | `Copy the following text to export your auto-liked channels.` |
 | `auto_like_import_desc` | `Paste the auto-liked channels you want to import into the field below, then click the import button:` |
 | `vote_label_likes` | `%1 likes` |
@@ -321,16 +329,18 @@ This means to figure out which keys are untranslated, you will need to manually
 
 <br></details>
 
-<details><summary><code>ja_JA</code> - 62 missing keys <i>(click to show)</i></summary><br>
+<details><summary><code>ja_JA</code> - 64 missing keys <i>(click to show)</i></summary><br>
 
 | Key | English text |
 | --- | ------------ |
-| `bytm_config_export_import_title` | `Export/Import Configuration` |
+| `bytm_config_export_import_title` | `Export or Import Configuration` |
 | `bytm_config_import_desc` | `Paste the configuration you want to import into the field below, then click the import button:` |
 | `bytm_config_export_desc` | `Copy the following text to export your configuration. Warning: it may contain sensitive data.` |
 | `export_import` | `Export/Import` |
 | `click_to_reveal` | `(click to reveal)` |
 | `start_import_tooltip` | `Click to import the data you pasted above` |
+| `import_success` | `Successfully imported the data` |
+| `import_success_confirm_reload` | `Successfully imported the data.\nDo you want to reload the page now to apply changes?` |
 | `copy` | `Copy` |
 | `copied_to_clipboard` | `Copied to clipboard!` |
 | `close_tooltip` | `Click to close` |
@@ -339,7 +349,7 @@ This means to figure out which keys are untranslated, you will need to manually
 | `remove_entry` | `Remove this entry` |
 | `edit_entry` | `Edit this entry` |
 | `open_lyrics_search_prompt` | `Enter the song title and artist to search for the lyrics:` |
-| `auto_like_channels_dialog_title` | `Auto-liked channels` |
+| `auto_like_channels_dialog_title` | `Auto-liked Channels` |
 | `auto_like_channels_dialog_desc` | `Here you can see what channels you have set to auto-like and you can edit, enable, disable and remove them.\nYou can also manually create entries, though it's easier to just visit the channel page and click the button there.` |
 | `auto_like` | `Auto-like` |
 | `auto_like_button_tooltip_enabled` | `Click to disable auto-liking. Shift-click to open the management dialog.` |
@@ -355,7 +365,7 @@ This means to figure out which keys are untranslated, you will need to manually
 | `auto_liked_a_channels_song` | `Liked song by %1` |
 | `auto_liked_a_channels_video` | `Liked video by %1` |
 | `auto_like_export_or_import_tooltip` | `Export or import your auto-liked channels` |
-| `auto_like_export_import_title` | `Export/Import auto-liked channels` |
+| `auto_like_export_import_title` | `Export or Import Auto-liked Channels` |
 | `auto_like_export_desc` | `Copy the following text to export your auto-liked channels.` |
 | `auto_like_import_desc` | `Paste the auto-liked channels you want to import into the field below, then click the import button:` |
 | `vote_label_likes` | `%1 likes` |
@@ -390,16 +400,18 @@ This means to figure out which keys are untranslated, you will need to manually
 
 <br></details>
 
-<details><summary><code>pt_BR</code> - 62 missing keys <i>(click to show)</i></summary><br>
+<details><summary><code>pt_BR</code> - 64 missing keys <i>(click to show)</i></summary><br>
 
 | Key | English text |
 | --- | ------------ |
-| `bytm_config_export_import_title` | `Export/Import Configuration` |
+| `bytm_config_export_import_title` | `Export or Import Configuration` |
 | `bytm_config_import_desc` | `Paste the configuration you want to import into the field below, then click the import button:` |
 | `bytm_config_export_desc` | `Copy the following text to export your configuration. Warning: it may contain sensitive data.` |
 | `export_import` | `Export/Import` |
 | `click_to_reveal` | `(click to reveal)` |
 | `start_import_tooltip` | `Click to import the data you pasted above` |
+| `import_success` | `Successfully imported the data` |
+| `import_success_confirm_reload` | `Successfully imported the data.\nDo you want to reload the page now to apply changes?` |
 | `copy` | `Copy` |
 | `copied_to_clipboard` | `Copied to clipboard!` |
 | `close_tooltip` | `Click to close` |
@@ -408,7 +420,7 @@ This means to figure out which keys are untranslated, you will need to manually
 | `remove_entry` | `Remove this entry` |
 | `edit_entry` | `Edit this entry` |
 | `open_lyrics_search_prompt` | `Enter the song title and artist to search for the lyrics:` |
-| `auto_like_channels_dialog_title` | `Auto-liked channels` |
+| `auto_like_channels_dialog_title` | `Auto-liked Channels` |
 | `auto_like_channels_dialog_desc` | `Here you can see what channels you have set to auto-like and you can edit, enable, disable and remove them.\nYou can also manually create entries, though it's easier to just visit the channel page and click the button there.` |
 | `auto_like` | `Auto-like` |
 | `auto_like_button_tooltip_enabled` | `Click to disable auto-liking. Shift-click to open the management dialog.` |
@@ -424,7 +436,7 @@ This means to figure out which keys are untranslated, you will need to manually
 | `auto_liked_a_channels_song` | `Liked song by %1` |
 | `auto_liked_a_channels_video` | `Liked video by %1` |
 | `auto_like_export_or_import_tooltip` | `Export or import your auto-liked channels` |
-| `auto_like_export_import_title` | `Export/Import auto-liked channels` |
+| `auto_like_export_import_title` | `Export or Import Auto-liked Channels` |
 | `auto_like_export_desc` | `Copy the following text to export your auto-liked channels.` |
 | `auto_like_import_desc` | `Paste the auto-liked channels you want to import into the field below, then click the import button:` |
 | `vote_label_likes` | `%1 likes` |
@@ -459,16 +471,18 @@ This means to figure out which keys are untranslated, you will need to manually
 
 <br></details>
 
-<details><summary><code>zh_CN</code> - 62 missing keys <i>(click to show)</i></summary><br>
+<details><summary><code>zh_CN</code> - 64 missing keys <i>(click to show)</i></summary><br>
 
 | Key | English text |
 | --- | ------------ |
-| `bytm_config_export_import_title` | `Export/Import Configuration` |
+| `bytm_config_export_import_title` | `Export or Import Configuration` |
 | `bytm_config_import_desc` | `Paste the configuration you want to import into the field below, then click the import button:` |
 | `bytm_config_export_desc` | `Copy the following text to export your configuration. Warning: it may contain sensitive data.` |
 | `export_import` | `Export/Import` |
 | `click_to_reveal` | `(click to reveal)` |
 | `start_import_tooltip` | `Click to import the data you pasted above` |
+| `import_success` | `Successfully imported the data` |
+| `import_success_confirm_reload` | `Successfully imported the data.\nDo you want to reload the page now to apply changes?` |
 | `copy` | `Copy` |
 | `copied_to_clipboard` | `Copied to clipboard!` |
 | `close_tooltip` | `Click to close` |
@@ -477,7 +491,7 @@ This means to figure out which keys are untranslated, you will need to manually
 | `remove_entry` | `Remove this entry` |
 | `edit_entry` | `Edit this entry` |
 | `open_lyrics_search_prompt` | `Enter the song title and artist to search for the lyrics:` |
-| `auto_like_channels_dialog_title` | `Auto-liked channels` |
+| `auto_like_channels_dialog_title` | `Auto-liked Channels` |
 | `auto_like_channels_dialog_desc` | `Here you can see what channels you have set to auto-like and you can edit, enable, disable and remove them.\nYou can also manually create entries, though it's easier to just visit the channel page and click the button there.` |
 | `auto_like` | `Auto-like` |
 | `auto_like_button_tooltip_enabled` | `Click to disable auto-liking. Shift-click to open the management dialog.` |
@@ -493,7 +507,7 @@ This means to figure out which keys are untranslated, you will need to manually
 | `auto_liked_a_channels_song` | `Liked song by %1` |
 | `auto_liked_a_channels_video` | `Liked video by %1` |
 | `auto_like_export_or_import_tooltip` | `Export or import your auto-liked channels` |
-| `auto_like_export_import_title` | `Export/Import auto-liked channels` |
+| `auto_like_export_import_title` | `Export or Import Auto-liked Channels` |
 | `auto_like_export_desc` | `Copy the following text to export your auto-liked channels.` |
 | `auto_like_import_desc` | `Paste the auto-liked channels you want to import into the field below, then click the import button:` |
 | `vote_label_likes` | `%1 likes` |

+ 0 - 1
assets/translations/de_DE.json

@@ -23,7 +23,6 @@
     "import_error_no_format_version": "Die importierten Daten enthalten keine Format-Version",
     "import_error_no_data": "Das importierte Objekt enthält keine Daten",
     "import_error_wrong_format_version": "Die importierten Daten haben eine nicht unterstützte Format-Version (%1 oder niedriger erwartet, aber %2 erhalten)",
-    "import_success_confirm_reload": "Die Einstellungen wurde erfolgreich importiert.\nMöchtest du die Seite jetzt neu laden, um die Änderungen zu übernehmen?",
     "reset_config_confirm": "Möchtest du wirklich alle Einstellungen auf ihre Standardwerte zurücksetzen?\nDie Seite wird automatisch neu geladen.",
     "copy_to_clipboard": "In die Zwischenablage kopieren",
     "copy_to_clipboard_error": "Der Text konnte nicht in die Zwischenablage kopiert werden. Bitte kopiere ihn hier manuell:\n%1",

+ 5 - 4
assets/translations/en_US.json

@@ -13,7 +13,7 @@
     "feature_requires_reload": "Changing this feature requires a page reload",
     "version_tooltip": "Version %1 (build %2) - click to open the changelog",
 
-    "bytm_config_export_import_title": "Export/Import Configuration",
+    "bytm_config_export_import_title": "Export or Import Configuration",
     "bytm_config_import_desc": "Paste the configuration you want to import into the field below, then click the import button:",
     "bytm_config_export_desc": "Copy the following text to export your configuration. Warning: it may contain sensitive data.",
     "export_import": "Export/Import",
@@ -30,7 +30,8 @@
     "import_error_no_format_version": "The imported data does not contain a format version",
     "import_error_no_data": "The imported object does not contain any data",
     "import_error_wrong_format_version": "The imported data is in an unsupported format version (expected %1 or lower but got %2)",
-    "import_success_confirm_reload": "Successfully imported the configuration.\nDo you want to reload the page now to apply changes?",
+    "import_success": "Successfully imported the data",
+    "import_success_confirm_reload": "Successfully imported the data.\nDo you want to reload the page now to apply changes?",
     "reset_config_confirm": "Do you really want to reset all settings to their default values?\nThe page will be automatically reloaded.",
     "copy": "Copy",
     "copy_to_clipboard": "Copy to clipboard",
@@ -141,7 +142,7 @@
     "thumbnail_overlay_image_fit_full": "Show full image",
     "thumbnail_overlay_image_fit_stretch": "Stretch to fit",
 
-    "auto_like_channels_dialog_title": "Auto-liked channels",
+    "auto_like_channels_dialog_title": "Auto-liked Channels",
     "auto_like_channels_dialog_desc": "Here you can see what channels you have set to auto-like and you can edit, enable, disable and remove them.\nYou can also manually create entries, though it's easier to just visit the channel page and click the button there.",
     "auto_like": "Auto-like",
     "auto_like_button_tooltip_enabled": "Click to disable auto-liking. Shift-click to open the management dialog.",
@@ -157,7 +158,7 @@
     "auto_liked_a_channels_song": "Liked song by %1",
     "auto_liked_a_channels_video": "Liked video by %1",
     "auto_like_export_or_import_tooltip": "Export or import your auto-liked channels",
-    "auto_like_export_import_title": "Export/Import auto-liked channels",
+    "auto_like_export_import_title": "Export or Import Auto-liked Channels",
     "auto_like_export_desc": "Copy the following text to export your auto-liked channels.",
     "auto_like_import_desc": "Paste the auto-liked channels you want to import into the field below, then click the import button:",
 

+ 0 - 1
assets/translations/es_ES.json

@@ -23,7 +23,6 @@
     "import_error_no_format_version": "Los datos importados no contienen una versión de formato",
     "import_error_no_data": "El objeto importado no contiene ningún dato",
     "import_error_wrong_format_version": "Los datos importados están en una versión de formato no compatible (se esperaba %1 o inferior pero se obtuvo %2)",
-    "import_success_confirm_reload": "Configuración importada con éxito.\n¿Quieres recargar la página ahora para aplicar los cambios?",
     "reset_config_confirm": "¿Realmente quieres restablecer todos los ajustes a sus valores predeterminados?\nLa página se volverá a cargar automáticamente.",
     "copy_to_clipboard": "Copiar al portapapeles",
     "copy_to_clipboard_error": "No se pudo copiar el texto al portapapeles. Cópielo manualmente desde aquí:\n%1",

+ 0 - 1
assets/translations/fr_FR.json

@@ -23,7 +23,6 @@
     "import_error_no_format_version": "Les données importées ne contiennent pas de version de format",
     "import_error_no_data": "L'objet importé ne contient aucune donnée",
     "import_error_wrong_format_version": "Les données importées sont dans une version de format non prise en charge (attendue %1 ou inférieure mais obtenue %2)",
-    "import_success_confirm_reload": "La configuration a été importée avec succès.\nVoulez-vous recharger la page maintenant pour appliquer les modifications?",
     "reset_config_confirm": "Voulez-vous vraiment réinitialiser tous les paramètres à leurs valeurs par défaut?\nLa page sera automatiquement rechargée.",
     "copy_to_clipboard": "Copier dans le presse-papiers",
     "copy_to_clipboard_error": "Impossible de copier le texte dans le presse-papiers. Veuillez le copier manuellement d'ici:\n%1",

+ 0 - 1
assets/translations/hi_IN.json

@@ -23,7 +23,6 @@
     "import_error_no_format_version": "आयात की गई डेटा में कोई फ़ॉर्मेट संस्करण नहीं है",
     "import_error_no_data": "आयात किया गया ऑब्जेक्ट किसी भी डेटा को नहीं शामिल करता है",
     "import_error_wrong_format_version": "आयात की गई डेटा एक असमर्थित फ़ॉर्मेट संस्करण में है (अपेक्षित %1 या नीचे लेकिन %2 मिला)",
-    "import_success_confirm_reload": "कॉन्फ़िगरेशन सफलतापूर्वक आयात किया गया।\nक्या आप परिवर्तन लागू करने के लिए पृष्ठ को अब पुनः लोड करना चाहते हैं?",
     "reset_config_confirm": "क्या आप वास्तव में सभी सेटिंग्स को उनके डिफ़ॉल्ट मानों पर रीसेट करना चाहते हैं?\nपृष्ठ स्वचालित रूप से पुनः लोड हो जाएगा।",
     "copy_to_clipboard": "क्लिपबोर्ड पर कॉपी करें",
     "copy_to_clipboard_error": "टेक्स्ट को क्लिपबोर्ड पर कॉपी नहीं किया जा सका। कृपया इसे यहां से मैन्युअल रूप से कॉपी करें:\n%1",

+ 0 - 1
assets/translations/ja_JA.json

@@ -23,7 +23,6 @@
     "import_error_no_format_version": "インポートされたデータにフォーマットバージョンが含まれていません",
     "import_error_no_data": "インポートされたオブジェクトにデータが含まれていません",
     "import_error_wrong_format_version": "インポートされたデータはサポートされていないフォーマットバージョンです(%1 以下が必要ですが、%2 が指定されています)",
-    "import_success_confirm_reload": "構成をインポートしました。\n変更を適用するには今すぐページを再読み込みしますか?",
     "reset_config_confirm": "すべての設定をデフォルト値にリセットしてもよろしいですか?\nページは自動的に再読み込みされます。",
     "copy_to_clipboard": "クリップボードにコピー",
     "copy_to_clipboard_error": "テキストをクリップボードにコピーできませんでした。ここから手動でコピーしてください:\n%1",

+ 0 - 1
assets/translations/pt_BR.json

@@ -23,7 +23,6 @@
     "import_error_no_format_version": "Os dados importados não contêm uma versão de formato",
     "import_error_no_data": "O objeto importado não contém nenhum dado",
     "import_error_wrong_format_version": "Os dados importados estão em uma versão de formato não suportada (esperada %1 ou inferior, mas %2)",
-    "import_success_confirm_reload": "Configuração importada com sucesso.\nVocê deseja recarregar a página agora para aplicar as alterações?",
     "reset_config_confirm": "Você realmente deseja redefinir todas as configurações para seus valores padrão?\nA página será recarregada automaticamente.",
     "copy_to_clipboard": "Copiar para a área de transferência",
     "copy_to_clipboard_error": "Não foi possível copiar o texto para a área de transferência. Por favor, copie manualmente daqui:\n%1",

+ 0 - 1
assets/translations/zh_CN.json

@@ -23,7 +23,6 @@
     "import_error_no_format_version": "导入的数据不包含格式版本",
     "import_error_no_data": "导入的对象不包含任何数据",
     "import_error_wrong_format_version": "导入的数据格式版本不受支持(期望 %1 或更低版本,但得到 %2)",
-    "import_success_confirm_reload": "配置导入成功。\n您是否要重新加载页面以应用更改?",
     "reset_config_confirm": "您是否确实要将所有设置重置为默认值?\n页面将自动重新加载。",
     "copy_to_clipboard": "复制到剪贴板",
     "copy_to_clipboard_error": "无法将文本复制到剪贴板。请手动从这里复制:\n%1",

+ 47 - 49
dist/BetterYTM.user.js

@@ -17,7 +17,7 @@
 // @license           AGPL-3.0-only
 // @author            Sv443
 // @copyright         Sv443 (https://github.com/Sv443)
-// @icon              https://raw.githubusercontent.com/Sv443/BetterYTM/bf5f5aba/assets/images/logo/logo_dev_48.png
+// @icon              https://raw.githubusercontent.com/Sv443/BetterYTM/687f6f29/assets/images/logo/logo_dev_48.png
 // @match             https://music.youtube.com/*
 // @match             https://www.youtube.com/*
 // @run-at            document-start
@@ -33,49 +33,49 @@
 // @grant             GM.openInTab
 // @grant             unsafeWindow
 // @noframes
-// @resource          css-bundle              https://raw.githubusercontent.com/Sv443/BetterYTM/bf5f5aba/dist/BetterYTM.css
-// @resource          css-above_queue_btns    https://raw.githubusercontent.com/Sv443/BetterYTM/bf5f5aba/assets/style/aboveQueueBtns.css
-// @resource          css-anchor_improvements https://raw.githubusercontent.com/Sv443/BetterYTM/bf5f5aba/assets/style/anchorImprovements.css
-// @resource          css-fix_hdr             https://raw.githubusercontent.com/Sv443/BetterYTM/bf5f5aba/assets/style/fixHDR.css
-// @resource          css-fix_spacing         https://raw.githubusercontent.com/Sv443/BetterYTM/bf5f5aba/assets/style/fixSpacing.css
-// @resource          css-show_votes          https://raw.githubusercontent.com/Sv443/BetterYTM/bf5f5aba/assets/style/showVotes.css
-// @resource          css-vol_slider_size     https://raw.githubusercontent.com/Sv443/BetterYTM/bf5f5aba/assets/style/volSliderSize.css
-// @resource          doc-changelog           https://raw.githubusercontent.com/Sv443/BetterYTM/bf5f5aba/changelog.md
-// @resource          icon-advanced_mode      https://raw.githubusercontent.com/Sv443/BetterYTM/bf5f5aba/assets/icons/plus_circle_small.svg
-// @resource          icon-arrow_down         https://raw.githubusercontent.com/Sv443/BetterYTM/bf5f5aba/assets/icons/arrow_down.svg
-// @resource          icon-auto_like_enabled  https://raw.githubusercontent.com/Sv443/BetterYTM/bf5f5aba/assets/icons/auto_like_enabled.svg
-// @resource          icon-auto_like          https://raw.githubusercontent.com/Sv443/BetterYTM/bf5f5aba/assets/icons/auto_like.svg
-// @resource          icon-clear_list         https://raw.githubusercontent.com/Sv443/BetterYTM/bf5f5aba/assets/icons/clear_list.svg
-// @resource          icon-delete             https://raw.githubusercontent.com/Sv443/BetterYTM/bf5f5aba/assets/icons/delete.svg
-// @resource          icon-edit               https://raw.githubusercontent.com/Sv443/BetterYTM/bf5f5aba/assets/icons/edit.svg
-// @resource          icon-error              https://raw.githubusercontent.com/Sv443/BetterYTM/bf5f5aba/assets/icons/error.svg
-// @resource          icon-experimental       https://raw.githubusercontent.com/Sv443/BetterYTM/bf5f5aba/assets/icons/beaker_small.svg
-// @resource          icon-globe_small        https://raw.githubusercontent.com/Sv443/BetterYTM/bf5f5aba/assets/icons/globe_small.svg
-// @resource          icon-globe              https://raw.githubusercontent.com/Sv443/BetterYTM/bf5f5aba/assets/icons/globe.svg
-// @resource          icon-help               https://raw.githubusercontent.com/Sv443/BetterYTM/bf5f5aba/assets/icons/help.svg
-// @resource          icon-image_filled       https://raw.githubusercontent.com/Sv443/BetterYTM/bf5f5aba/assets/icons/image_filled.svg
-// @resource          icon-image              https://raw.githubusercontent.com/Sv443/BetterYTM/bf5f5aba/assets/icons/image.svg
-// @resource          icon-link               https://raw.githubusercontent.com/Sv443/BetterYTM/bf5f5aba/assets/icons/link.svg
-// @resource          icon-lyrics             https://raw.githubusercontent.com/Sv443/BetterYTM/bf5f5aba/assets/icons/lyrics.svg
-// @resource          icon-reload             https://raw.githubusercontent.com/Sv443/BetterYTM/bf5f5aba/assets/icons/refresh.svg
-// @resource          icon-skip_to            https://raw.githubusercontent.com/Sv443/BetterYTM/bf5f5aba/assets/icons/skip_to.svg
-// @resource          icon-spinner            https://raw.githubusercontent.com/Sv443/BetterYTM/bf5f5aba/assets/icons/spinner.svg
-// @resource          img-close               https://raw.githubusercontent.com/Sv443/BetterYTM/bf5f5aba/assets/images/close.png
-// @resource          img-discord             https://raw.githubusercontent.com/Sv443/BetterYTM/bf5f5aba/assets/images/external/discord.png
-// @resource          img-github              https://raw.githubusercontent.com/Sv443/BetterYTM/bf5f5aba/assets/images/external/github.png
-// @resource          img-greasyfork          https://raw.githubusercontent.com/Sv443/BetterYTM/bf5f5aba/assets/images/external/greasyfork.png
-// @resource          img-logo_dev            https://raw.githubusercontent.com/Sv443/BetterYTM/bf5f5aba/assets/images/logo/logo_dev_48.png
-// @resource          img-logo                https://raw.githubusercontent.com/Sv443/BetterYTM/bf5f5aba/assets/images/logo/logo_48.png
-// @resource          img-openuserjs          https://raw.githubusercontent.com/Sv443/BetterYTM/bf5f5aba/assets/images/external/openuserjs.png
-// @resource          trans-de_DE             https://raw.githubusercontent.com/Sv443/BetterYTM/bf5f5aba/assets/translations/de_DE.json
-// @resource          trans-en_US             https://raw.githubusercontent.com/Sv443/BetterYTM/bf5f5aba/assets/translations/en_US.json
-// @resource          trans-en_UK             https://raw.githubusercontent.com/Sv443/BetterYTM/bf5f5aba/assets/translations/en_UK.json
-// @resource          trans-es_ES             https://raw.githubusercontent.com/Sv443/BetterYTM/bf5f5aba/assets/translations/es_ES.json
-// @resource          trans-fr_FR             https://raw.githubusercontent.com/Sv443/BetterYTM/bf5f5aba/assets/translations/fr_FR.json
-// @resource          trans-hi_IN             https://raw.githubusercontent.com/Sv443/BetterYTM/bf5f5aba/assets/translations/hi_IN.json
-// @resource          trans-ja_JA             https://raw.githubusercontent.com/Sv443/BetterYTM/bf5f5aba/assets/translations/ja_JA.json
-// @resource          trans-pt_BR             https://raw.githubusercontent.com/Sv443/BetterYTM/bf5f5aba/assets/translations/pt_BR.json
-// @resource          trans-zh_CN             https://raw.githubusercontent.com/Sv443/BetterYTM/bf5f5aba/assets/translations/zh_CN.json
+// @resource          css-bundle              https://raw.githubusercontent.com/Sv443/BetterYTM/687f6f29/dist/BetterYTM.css
+// @resource          css-above_queue_btns    https://raw.githubusercontent.com/Sv443/BetterYTM/687f6f29/assets/style/aboveQueueBtns.css
+// @resource          css-anchor_improvements https://raw.githubusercontent.com/Sv443/BetterYTM/687f6f29/assets/style/anchorImprovements.css
+// @resource          css-fix_hdr             https://raw.githubusercontent.com/Sv443/BetterYTM/687f6f29/assets/style/fixHDR.css
+// @resource          css-fix_spacing         https://raw.githubusercontent.com/Sv443/BetterYTM/687f6f29/assets/style/fixSpacing.css
+// @resource          css-show_votes          https://raw.githubusercontent.com/Sv443/BetterYTM/687f6f29/assets/style/showVotes.css
+// @resource          css-vol_slider_size     https://raw.githubusercontent.com/Sv443/BetterYTM/687f6f29/assets/style/volSliderSize.css
+// @resource          doc-changelog           https://raw.githubusercontent.com/Sv443/BetterYTM/687f6f29/changelog.md
+// @resource          icon-advanced_mode      https://raw.githubusercontent.com/Sv443/BetterYTM/687f6f29/assets/icons/plus_circle_small.svg
+// @resource          icon-arrow_down         https://raw.githubusercontent.com/Sv443/BetterYTM/687f6f29/assets/icons/arrow_down.svg
+// @resource          icon-auto_like_enabled  https://raw.githubusercontent.com/Sv443/BetterYTM/687f6f29/assets/icons/auto_like_enabled.svg
+// @resource          icon-auto_like          https://raw.githubusercontent.com/Sv443/BetterYTM/687f6f29/assets/icons/auto_like.svg
+// @resource          icon-clear_list         https://raw.githubusercontent.com/Sv443/BetterYTM/687f6f29/assets/icons/clear_list.svg
+// @resource          icon-delete             https://raw.githubusercontent.com/Sv443/BetterYTM/687f6f29/assets/icons/delete.svg
+// @resource          icon-edit               https://raw.githubusercontent.com/Sv443/BetterYTM/687f6f29/assets/icons/edit.svg
+// @resource          icon-error              https://raw.githubusercontent.com/Sv443/BetterYTM/687f6f29/assets/icons/error.svg
+// @resource          icon-experimental       https://raw.githubusercontent.com/Sv443/BetterYTM/687f6f29/assets/icons/beaker_small.svg
+// @resource          icon-globe_small        https://raw.githubusercontent.com/Sv443/BetterYTM/687f6f29/assets/icons/globe_small.svg
+// @resource          icon-globe              https://raw.githubusercontent.com/Sv443/BetterYTM/687f6f29/assets/icons/globe.svg
+// @resource          icon-help               https://raw.githubusercontent.com/Sv443/BetterYTM/687f6f29/assets/icons/help.svg
+// @resource          icon-image_filled       https://raw.githubusercontent.com/Sv443/BetterYTM/687f6f29/assets/icons/image_filled.svg
+// @resource          icon-image              https://raw.githubusercontent.com/Sv443/BetterYTM/687f6f29/assets/icons/image.svg
+// @resource          icon-link               https://raw.githubusercontent.com/Sv443/BetterYTM/687f6f29/assets/icons/link.svg
+// @resource          icon-lyrics             https://raw.githubusercontent.com/Sv443/BetterYTM/687f6f29/assets/icons/lyrics.svg
+// @resource          icon-reload             https://raw.githubusercontent.com/Sv443/BetterYTM/687f6f29/assets/icons/refresh.svg
+// @resource          icon-skip_to            https://raw.githubusercontent.com/Sv443/BetterYTM/687f6f29/assets/icons/skip_to.svg
+// @resource          icon-spinner            https://raw.githubusercontent.com/Sv443/BetterYTM/687f6f29/assets/icons/spinner.svg
+// @resource          img-close               https://raw.githubusercontent.com/Sv443/BetterYTM/687f6f29/assets/images/close.png
+// @resource          img-discord             https://raw.githubusercontent.com/Sv443/BetterYTM/687f6f29/assets/images/external/discord.png
+// @resource          img-github              https://raw.githubusercontent.com/Sv443/BetterYTM/687f6f29/assets/images/external/github.png
+// @resource          img-greasyfork          https://raw.githubusercontent.com/Sv443/BetterYTM/687f6f29/assets/images/external/greasyfork.png
+// @resource          img-logo_dev            https://raw.githubusercontent.com/Sv443/BetterYTM/687f6f29/assets/images/logo/logo_dev_48.png
+// @resource          img-logo                https://raw.githubusercontent.com/Sv443/BetterYTM/687f6f29/assets/images/logo/logo_48.png
+// @resource          img-openuserjs          https://raw.githubusercontent.com/Sv443/BetterYTM/687f6f29/assets/images/external/openuserjs.png
+// @resource          trans-de_DE             https://raw.githubusercontent.com/Sv443/BetterYTM/687f6f29/assets/translations/de_DE.json
+// @resource          trans-en_US             https://raw.githubusercontent.com/Sv443/BetterYTM/687f6f29/assets/translations/en_US.json
+// @resource          trans-en_UK             https://raw.githubusercontent.com/Sv443/BetterYTM/687f6f29/assets/translations/en_UK.json
+// @resource          trans-es_ES             https://raw.githubusercontent.com/Sv443/BetterYTM/687f6f29/assets/translations/es_ES.json
+// @resource          trans-fr_FR             https://raw.githubusercontent.com/Sv443/BetterYTM/687f6f29/assets/translations/fr_FR.json
+// @resource          trans-hi_IN             https://raw.githubusercontent.com/Sv443/BetterYTM/687f6f29/assets/translations/hi_IN.json
+// @resource          trans-ja_JA             https://raw.githubusercontent.com/Sv443/BetterYTM/687f6f29/assets/translations/ja_JA.json
+// @resource          trans-pt_BR             https://raw.githubusercontent.com/Sv443/BetterYTM/687f6f29/assets/translations/pt_BR.json
+// @resource          trans-zh_CN             https://raw.githubusercontent.com/Sv443/BetterYTM/687f6f29/assets/translations/zh_CN.json
 // @require           https://cdn.jsdelivr.net/npm/@sv443-network/[email protected]/dist/index.global.js
 // @require           https://cdn.jsdelivr.net/npm/[email protected]/dist/fuse.basic.js
 // @require           https://cdn.jsdelivr.net/npm/[email protected]/lib/marked.umd.js
@@ -188,7 +188,7 @@ var PluginIntent;
 })(PluginIntent || (PluginIntent = {}));const modeRaw = "development";
 const branchRaw = "develop";
 const hostRaw = "github";
-const buildNumberRaw = "bf5f5aba";
+const buildNumberRaw = "687f6f29";
 /** The mode in which the script was built (production or development) */
 const mode = (modeRaw.match(/^#{{.+}}$/) ? "production" : modeRaw);
 /** The branch to use in various URLs that point to the GitHub repo */
@@ -924,10 +924,7 @@ class ExImDialog extends BytmDialog {
                         return __awaiter(this, arguments, void 0, function* ({ shiftKey }) {
                             const copyData = shiftKey && opts.exportDataSpecial ? opts.exportDataSpecial : opts.exportData;
                             copyToClipboard(typeof copyData === "function" ? yield copyData() : copyData);
-                            yield showToast({
-                                position: "bl",
-                                message: t("copied_to_clipboard"),
-                            });
+                            yield showToast({ message: t("copied_to_clipboard") });
                         });
                     },
                 }));
@@ -1470,6 +1467,7 @@ function getAutoLikeDialog() {
                             return alert(t("import_error_no_data"));
                         yield autoLikeStore.setData(parsed);
                         siteEvents.emit("autoLikeChannelsUpdated");
+                        showToast({ message: t("import_success") });
                     }
                     catch (err) {
                         error("Couldn't import auto-like channels data:", err);

+ 1 - 4
src/components/ExportImportDialog.ts

@@ -100,10 +100,7 @@ export class ExImDialog extends BytmDialog {
         async onClick({ shiftKey }) {
           const copyData = shiftKey && opts.exportDataSpecial ? opts.exportDataSpecial : opts.exportData;
           copyToClipboard(typeof copyData === "function" ? await copyData() : copyData);
-          await showToast({
-            position: "bl",
-            message: t("copied_to_clipboard"),
-          });
+          await showToast({ message: t("copied_to_clipboard") });
         },
       }));
 

+ 3 - 1
src/dialogs/autoLike.ts

@@ -1,6 +1,6 @@
 import { compress, debounce } from "@sv443-network/userutils";
 import { compressionSupported, error, getDomain, log, onInteraction, parseChannelIdFromUrl, t, tryToDecompressAndParse } from "../utils/index.js";
-import { BytmDialog, createCircularBtn, createToggleInput } from "../components/index.js";
+import { BytmDialog, createCircularBtn, createToggleInput, showToast } from "../components/index.js";
 import { autoLikeStore, initAutoLikeStore } from "../features/index.js";
 import { siteEvents } from "../siteEvents.js";
 import { ExImDialog } from "../components/ExportImportDialog.js";
@@ -63,6 +63,8 @@ export async function getAutoLikeDialog() {
 
           await autoLikeStore.setData(parsed);
           siteEvents.emit("autoLikeChannelsUpdated");
+
+          showToast({ message: t("import_success") });
         }
         catch(err) {
           error("Couldn't import auto-like channels data:", err);