Explorar o código

fix: likes/dislikes translation pluralization

Sven hai 10 meses
pai
achega
6d5b5284b6
Modificáronse 4 ficheiros con 100 adicións e 84 borrados
  1. 44 30
      assets/translations/README.md
  2. 4 2
      assets/translations/en_US.json
  3. 49 49
      dist/BetterYTM.user.js
  4. 3 3
      src/features/layout.ts

+ 44 - 30
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) | 272 (default locale) |  |
-| ‼️ | [`de_DE`](./de_DE.json) | `207/272` (76.1%) | ─ |
-| ─ | [`en_UK`](./en_UK.json) | `272` (100%) | `en_US` |
-| ‼️ | [`es_ES`](./es_ES.json) | `207/272` (76.1%) | ─ |
-| ‼️ | [`fr_FR`](./fr_FR.json) | `207/272` (76.1%) | ─ |
-| ‼️ | [`hi_IN`](./hi_IN.json) | `207/272` (76.1%) | ─ |
-| ‼️ | [`ja_JA`](./ja_JA.json) | `207/272` (76.1%) | ─ |
-| ‼️ | [`pt_BR`](./pt_BR.json) | `207/272` (76.1%) | ─ |
-| ‼️ | [`zh_CN`](./zh_CN.json) | `207/272` (76.1%) | ─ |
+| ─ | [`en_US`](./en_US.json) | 274 (default locale) |  |
+| ‼️ | [`de_DE`](./de_DE.json) | `207/274` (75.5%) | ─ |
+| ─ | [`en_UK`](./en_UK.json) | `274` (100%) | `en_US` |
+| ‼️ | [`es_ES`](./es_ES.json) | `207/274` (75.5%) | ─ |
+| ‼️ | [`fr_FR`](./fr_FR.json) | `207/274` (75.5%) | ─ |
+| ‼️ | [`hi_IN`](./hi_IN.json) | `207/274` (75.5%) | ─ |
+| ‼️ | [`ja_JA`](./ja_JA.json) | `207/274` (75.5%) | ─ |
+| ‼️ | [`pt_BR`](./pt_BR.json) | `207/274` (75.5%) | ─ |
+| ‼️ | [`zh_CN`](./zh_CN.json) | `207/274` (75.5%) | ─ |
 
 <sub>
 ✅ - Fully translated
@@ -45,7 +45,7 @@ This means to figure out which keys are untranslated, you will need to manually
 
 ### Missing keys:
 
-<details><summary><code>de_DE</code> - 65 missing keys <i>(click to show)</i></summary><br>
+<details><summary><code>de_DE</code> - 67 missing keys <i>(click to show)</i></summary><br>
 
 | Key | English text |
 | --- | ------------ |
@@ -85,8 +85,10 @@ This means to figure out which keys are untranslated, you will need to manually
 | `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` |
-| `vote_label_dislikes` | `%1 dislikes` |
+| `vote_label_likes-1` | `%1 like` |
+| `vote_label_likes-n` | `%1 likes` |
+| `vote_label_dislikes-1` | `%1 dislike` |
+| `vote_label_dislikes-n` | `%1 dislikes` |
 | `vote_ratio_disabled` | `Disabled` |
 | `vote_ratio_green_red` | `Green and red` |
 | `vote_ratio_blue_gray` | `Blue and gray` |
@@ -117,7 +119,7 @@ This means to figure out which keys are untranslated, you will need to manually
 
 <br></details>
 
-<details><summary><code>es_ES</code> - 65 missing keys <i>(click to show)</i></summary><br>
+<details><summary><code>es_ES</code> - 67 missing keys <i>(click to show)</i></summary><br>
 
 | Key | English text |
 | --- | ------------ |
@@ -157,8 +159,10 @@ This means to figure out which keys are untranslated, you will need to manually
 | `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` |
-| `vote_label_dislikes` | `%1 dislikes` |
+| `vote_label_likes-1` | `%1 like` |
+| `vote_label_likes-n` | `%1 likes` |
+| `vote_label_dislikes-1` | `%1 dislike` |
+| `vote_label_dislikes-n` | `%1 dislikes` |
 | `vote_ratio_disabled` | `Disabled` |
 | `vote_ratio_green_red` | `Green and red` |
 | `vote_ratio_blue_gray` | `Blue and gray` |
@@ -189,7 +193,7 @@ This means to figure out which keys are untranslated, you will need to manually
 
 <br></details>
 
-<details><summary><code>fr_FR</code> - 65 missing keys <i>(click to show)</i></summary><br>
+<details><summary><code>fr_FR</code> - 67 missing keys <i>(click to show)</i></summary><br>
 
 | Key | English text |
 | --- | ------------ |
@@ -229,8 +233,10 @@ This means to figure out which keys are untranslated, you will need to manually
 | `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` |
-| `vote_label_dislikes` | `%1 dislikes` |
+| `vote_label_likes-1` | `%1 like` |
+| `vote_label_likes-n` | `%1 likes` |
+| `vote_label_dislikes-1` | `%1 dislike` |
+| `vote_label_dislikes-n` | `%1 dislikes` |
 | `vote_ratio_disabled` | `Disabled` |
 | `vote_ratio_green_red` | `Green and red` |
 | `vote_ratio_blue_gray` | `Blue and gray` |
@@ -261,7 +267,7 @@ This means to figure out which keys are untranslated, you will need to manually
 
 <br></details>
 
-<details><summary><code>hi_IN</code> - 65 missing keys <i>(click to show)</i></summary><br>
+<details><summary><code>hi_IN</code> - 67 missing keys <i>(click to show)</i></summary><br>
 
 | Key | English text |
 | --- | ------------ |
@@ -301,8 +307,10 @@ This means to figure out which keys are untranslated, you will need to manually
 | `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` |
-| `vote_label_dislikes` | `%1 dislikes` |
+| `vote_label_likes-1` | `%1 like` |
+| `vote_label_likes-n` | `%1 likes` |
+| `vote_label_dislikes-1` | `%1 dislike` |
+| `vote_label_dislikes-n` | `%1 dislikes` |
 | `vote_ratio_disabled` | `Disabled` |
 | `vote_ratio_green_red` | `Green and red` |
 | `vote_ratio_blue_gray` | `Blue and gray` |
@@ -333,7 +341,7 @@ This means to figure out which keys are untranslated, you will need to manually
 
 <br></details>
 
-<details><summary><code>ja_JA</code> - 65 missing keys <i>(click to show)</i></summary><br>
+<details><summary><code>ja_JA</code> - 67 missing keys <i>(click to show)</i></summary><br>
 
 | Key | English text |
 | --- | ------------ |
@@ -373,8 +381,10 @@ This means to figure out which keys are untranslated, you will need to manually
 | `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` |
-| `vote_label_dislikes` | `%1 dislikes` |
+| `vote_label_likes-1` | `%1 like` |
+| `vote_label_likes-n` | `%1 likes` |
+| `vote_label_dislikes-1` | `%1 dislike` |
+| `vote_label_dislikes-n` | `%1 dislikes` |
 | `vote_ratio_disabled` | `Disabled` |
 | `vote_ratio_green_red` | `Green and red` |
 | `vote_ratio_blue_gray` | `Blue and gray` |
@@ -405,7 +415,7 @@ This means to figure out which keys are untranslated, you will need to manually
 
 <br></details>
 
-<details><summary><code>pt_BR</code> - 65 missing keys <i>(click to show)</i></summary><br>
+<details><summary><code>pt_BR</code> - 67 missing keys <i>(click to show)</i></summary><br>
 
 | Key | English text |
 | --- | ------------ |
@@ -445,8 +455,10 @@ This means to figure out which keys are untranslated, you will need to manually
 | `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` |
-| `vote_label_dislikes` | `%1 dislikes` |
+| `vote_label_likes-1` | `%1 like` |
+| `vote_label_likes-n` | `%1 likes` |
+| `vote_label_dislikes-1` | `%1 dislike` |
+| `vote_label_dislikes-n` | `%1 dislikes` |
 | `vote_ratio_disabled` | `Disabled` |
 | `vote_ratio_green_red` | `Green and red` |
 | `vote_ratio_blue_gray` | `Blue and gray` |
@@ -477,7 +489,7 @@ This means to figure out which keys are untranslated, you will need to manually
 
 <br></details>
 
-<details><summary><code>zh_CN</code> - 65 missing keys <i>(click to show)</i></summary><br>
+<details><summary><code>zh_CN</code> - 67 missing keys <i>(click to show)</i></summary><br>
 
 | Key | English text |
 | --- | ------------ |
@@ -517,8 +529,10 @@ This means to figure out which keys are untranslated, you will need to manually
 | `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` |
-| `vote_label_dislikes` | `%1 dislikes` |
+| `vote_label_likes-1` | `%1 like` |
+| `vote_label_likes-n` | `%1 likes` |
+| `vote_label_dislikes-1` | `%1 dislike` |
+| `vote_label_dislikes-n` | `%1 dislikes` |
 | `vote_ratio_disabled` | `Disabled` |
 | `vote_ratio_green_red` | `Green and red` |
 | `vote_ratio_blue_gray` | `Blue and gray` |

+ 4 - 2
assets/translations/en_US.json

@@ -162,8 +162,10 @@
     "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",
-    "vote_label_dislikes": "%1 dislikes",
+    "vote_label_likes-1": "%1 like",
+    "vote_label_likes-n": "%1 likes",
+    "vote_label_dislikes-1": "%1 dislike",
+    "vote_label_dislikes-n": "%1 dislikes",
 
     "vote_ratio_disabled": "Disabled",
     "vote_ratio_green_red": "Green and red",

+ 49 - 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/5339fe9/assets/images/logo/logo_dev_48.png
+// @icon              https://raw.githubusercontent.com/Sv443/BetterYTM/f1e9889/assets/images/logo/logo_dev_48.png
 // @match             https://music.youtube.com/*
 // @match             https://www.youtube.com/*
 // @run-at            document-start
@@ -33,51 +33,51 @@
 // @grant             GM.openInTab
 // @grant             unsafeWindow
 // @noframes
-// @resource          css-bundle              https://raw.githubusercontent.com/Sv443/BetterYTM/5339fe9/dist/BetterYTM.css
-// @resource          css-above_queue_btns    https://raw.githubusercontent.com/Sv443/BetterYTM/5339fe9/assets/style/aboveQueueBtns.css
-// @resource          css-anchor_improvements https://raw.githubusercontent.com/Sv443/BetterYTM/5339fe9/assets/style/anchorImprovements.css
-// @resource          css-fix_hdr             https://raw.githubusercontent.com/Sv443/BetterYTM/5339fe9/assets/style/fixHDR.css
-// @resource          css-fix_spacing         https://raw.githubusercontent.com/Sv443/BetterYTM/5339fe9/assets/style/fixSpacing.css
-// @resource          css-show_votes          https://raw.githubusercontent.com/Sv443/BetterYTM/5339fe9/assets/style/showVotes.css
-// @resource          css-vol_slider_size     https://raw.githubusercontent.com/Sv443/BetterYTM/5339fe9/assets/style/volSliderSize.css
-// @resource          doc-changelog           https://raw.githubusercontent.com/Sv443/BetterYTM/5339fe9/changelog.md
-// @resource          icon-advanced_mode      https://raw.githubusercontent.com/Sv443/BetterYTM/5339fe9/assets/icons/plus_circle_small.svg
-// @resource          icon-arrow_down         https://raw.githubusercontent.com/Sv443/BetterYTM/5339fe9/assets/icons/arrow_down.svg
-// @resource          icon-auto_like_enabled  https://raw.githubusercontent.com/Sv443/BetterYTM/5339fe9/assets/icons/auto_like_enabled.svg
-// @resource          icon-auto_like          https://raw.githubusercontent.com/Sv443/BetterYTM/5339fe9/assets/icons/auto_like.svg
-// @resource          icon-clear_list         https://raw.githubusercontent.com/Sv443/BetterYTM/5339fe9/assets/icons/clear_list.svg
-// @resource          icon-copy               https://raw.githubusercontent.com/Sv443/BetterYTM/5339fe9/assets/icons/copy.svg
-// @resource          icon-delete             https://raw.githubusercontent.com/Sv443/BetterYTM/5339fe9/assets/icons/delete.svg
-// @resource          icon-edit               https://raw.githubusercontent.com/Sv443/BetterYTM/5339fe9/assets/icons/edit.svg
-// @resource          icon-error              https://raw.githubusercontent.com/Sv443/BetterYTM/5339fe9/assets/icons/error.svg
-// @resource          icon-experimental       https://raw.githubusercontent.com/Sv443/BetterYTM/5339fe9/assets/icons/beaker_small.svg
-// @resource          icon-globe_small        https://raw.githubusercontent.com/Sv443/BetterYTM/5339fe9/assets/icons/globe_small.svg
-// @resource          icon-globe              https://raw.githubusercontent.com/Sv443/BetterYTM/5339fe9/assets/icons/globe.svg
-// @resource          icon-help               https://raw.githubusercontent.com/Sv443/BetterYTM/5339fe9/assets/icons/help.svg
-// @resource          icon-image_filled       https://raw.githubusercontent.com/Sv443/BetterYTM/5339fe9/assets/icons/image_filled.svg
-// @resource          icon-image              https://raw.githubusercontent.com/Sv443/BetterYTM/5339fe9/assets/icons/image.svg
-// @resource          icon-link               https://raw.githubusercontent.com/Sv443/BetterYTM/5339fe9/assets/icons/link.svg
-// @resource          icon-lyrics             https://raw.githubusercontent.com/Sv443/BetterYTM/5339fe9/assets/icons/lyrics.svg
-// @resource          icon-reload             https://raw.githubusercontent.com/Sv443/BetterYTM/5339fe9/assets/icons/refresh.svg
-// @resource          icon-skip_to            https://raw.githubusercontent.com/Sv443/BetterYTM/5339fe9/assets/icons/skip_to.svg
-// @resource          icon-spinner            https://raw.githubusercontent.com/Sv443/BetterYTM/5339fe9/assets/icons/spinner.svg
-// @resource          icon-upload             https://raw.githubusercontent.com/Sv443/BetterYTM/5339fe9/assets/icons/upload.svg
-// @resource          img-close               https://raw.githubusercontent.com/Sv443/BetterYTM/5339fe9/assets/images/close.png
-// @resource          img-discord             https://raw.githubusercontent.com/Sv443/BetterYTM/5339fe9/assets/images/external/discord.png
-// @resource          img-github              https://raw.githubusercontent.com/Sv443/BetterYTM/5339fe9/assets/images/external/github.png
-// @resource          img-greasyfork          https://raw.githubusercontent.com/Sv443/BetterYTM/5339fe9/assets/images/external/greasyfork.png
-// @resource          img-logo_dev            https://raw.githubusercontent.com/Sv443/BetterYTM/5339fe9/assets/images/logo/logo_dev_48.png
-// @resource          img-logo                https://raw.githubusercontent.com/Sv443/BetterYTM/5339fe9/assets/images/logo/logo_48.png
-// @resource          img-openuserjs          https://raw.githubusercontent.com/Sv443/BetterYTM/5339fe9/assets/images/external/openuserjs.png
-// @resource          trans-de_DE             https://raw.githubusercontent.com/Sv443/BetterYTM/5339fe9/assets/translations/de_DE.json
-// @resource          trans-en_US             https://raw.githubusercontent.com/Sv443/BetterYTM/5339fe9/assets/translations/en_US.json
-// @resource          trans-en_UK             https://raw.githubusercontent.com/Sv443/BetterYTM/5339fe9/assets/translations/en_UK.json
-// @resource          trans-es_ES             https://raw.githubusercontent.com/Sv443/BetterYTM/5339fe9/assets/translations/es_ES.json
-// @resource          trans-fr_FR             https://raw.githubusercontent.com/Sv443/BetterYTM/5339fe9/assets/translations/fr_FR.json
-// @resource          trans-hi_IN             https://raw.githubusercontent.com/Sv443/BetterYTM/5339fe9/assets/translations/hi_IN.json
-// @resource          trans-ja_JA             https://raw.githubusercontent.com/Sv443/BetterYTM/5339fe9/assets/translations/ja_JA.json
-// @resource          trans-pt_BR             https://raw.githubusercontent.com/Sv443/BetterYTM/5339fe9/assets/translations/pt_BR.json
-// @resource          trans-zh_CN             https://raw.githubusercontent.com/Sv443/BetterYTM/5339fe9/assets/translations/zh_CN.json
+// @resource          css-bundle              https://raw.githubusercontent.com/Sv443/BetterYTM/f1e9889/dist/BetterYTM.css
+// @resource          css-above_queue_btns    https://raw.githubusercontent.com/Sv443/BetterYTM/f1e9889/assets/style/aboveQueueBtns.css
+// @resource          css-anchor_improvements https://raw.githubusercontent.com/Sv443/BetterYTM/f1e9889/assets/style/anchorImprovements.css
+// @resource          css-fix_hdr             https://raw.githubusercontent.com/Sv443/BetterYTM/f1e9889/assets/style/fixHDR.css
+// @resource          css-fix_spacing         https://raw.githubusercontent.com/Sv443/BetterYTM/f1e9889/assets/style/fixSpacing.css
+// @resource          css-show_votes          https://raw.githubusercontent.com/Sv443/BetterYTM/f1e9889/assets/style/showVotes.css
+// @resource          css-vol_slider_size     https://raw.githubusercontent.com/Sv443/BetterYTM/f1e9889/assets/style/volSliderSize.css
+// @resource          doc-changelog           https://raw.githubusercontent.com/Sv443/BetterYTM/f1e9889/changelog.md
+// @resource          icon-advanced_mode      https://raw.githubusercontent.com/Sv443/BetterYTM/f1e9889/assets/icons/plus_circle_small.svg
+// @resource          icon-arrow_down         https://raw.githubusercontent.com/Sv443/BetterYTM/f1e9889/assets/icons/arrow_down.svg
+// @resource          icon-auto_like_enabled  https://raw.githubusercontent.com/Sv443/BetterYTM/f1e9889/assets/icons/auto_like_enabled.svg
+// @resource          icon-auto_like          https://raw.githubusercontent.com/Sv443/BetterYTM/f1e9889/assets/icons/auto_like.svg
+// @resource          icon-clear_list         https://raw.githubusercontent.com/Sv443/BetterYTM/f1e9889/assets/icons/clear_list.svg
+// @resource          icon-copy               https://raw.githubusercontent.com/Sv443/BetterYTM/f1e9889/assets/icons/copy.svg
+// @resource          icon-delete             https://raw.githubusercontent.com/Sv443/BetterYTM/f1e9889/assets/icons/delete.svg
+// @resource          icon-edit               https://raw.githubusercontent.com/Sv443/BetterYTM/f1e9889/assets/icons/edit.svg
+// @resource          icon-error              https://raw.githubusercontent.com/Sv443/BetterYTM/f1e9889/assets/icons/error.svg
+// @resource          icon-experimental       https://raw.githubusercontent.com/Sv443/BetterYTM/f1e9889/assets/icons/beaker_small.svg
+// @resource          icon-globe_small        https://raw.githubusercontent.com/Sv443/BetterYTM/f1e9889/assets/icons/globe_small.svg
+// @resource          icon-globe              https://raw.githubusercontent.com/Sv443/BetterYTM/f1e9889/assets/icons/globe.svg
+// @resource          icon-help               https://raw.githubusercontent.com/Sv443/BetterYTM/f1e9889/assets/icons/help.svg
+// @resource          icon-image_filled       https://raw.githubusercontent.com/Sv443/BetterYTM/f1e9889/assets/icons/image_filled.svg
+// @resource          icon-image              https://raw.githubusercontent.com/Sv443/BetterYTM/f1e9889/assets/icons/image.svg
+// @resource          icon-link               https://raw.githubusercontent.com/Sv443/BetterYTM/f1e9889/assets/icons/link.svg
+// @resource          icon-lyrics             https://raw.githubusercontent.com/Sv443/BetterYTM/f1e9889/assets/icons/lyrics.svg
+// @resource          icon-reload             https://raw.githubusercontent.com/Sv443/BetterYTM/f1e9889/assets/icons/refresh.svg
+// @resource          icon-skip_to            https://raw.githubusercontent.com/Sv443/BetterYTM/f1e9889/assets/icons/skip_to.svg
+// @resource          icon-spinner            https://raw.githubusercontent.com/Sv443/BetterYTM/f1e9889/assets/icons/spinner.svg
+// @resource          icon-upload             https://raw.githubusercontent.com/Sv443/BetterYTM/f1e9889/assets/icons/upload.svg
+// @resource          img-close               https://raw.githubusercontent.com/Sv443/BetterYTM/f1e9889/assets/images/close.png
+// @resource          img-discord             https://raw.githubusercontent.com/Sv443/BetterYTM/f1e9889/assets/images/external/discord.png
+// @resource          img-github              https://raw.githubusercontent.com/Sv443/BetterYTM/f1e9889/assets/images/external/github.png
+// @resource          img-greasyfork          https://raw.githubusercontent.com/Sv443/BetterYTM/f1e9889/assets/images/external/greasyfork.png
+// @resource          img-logo_dev            https://raw.githubusercontent.com/Sv443/BetterYTM/f1e9889/assets/images/logo/logo_dev_48.png
+// @resource          img-logo                https://raw.githubusercontent.com/Sv443/BetterYTM/f1e9889/assets/images/logo/logo_48.png
+// @resource          img-openuserjs          https://raw.githubusercontent.com/Sv443/BetterYTM/f1e9889/assets/images/external/openuserjs.png
+// @resource          trans-de_DE             https://raw.githubusercontent.com/Sv443/BetterYTM/f1e9889/assets/translations/de_DE.json
+// @resource          trans-en_US             https://raw.githubusercontent.com/Sv443/BetterYTM/f1e9889/assets/translations/en_US.json
+// @resource          trans-en_UK             https://raw.githubusercontent.com/Sv443/BetterYTM/f1e9889/assets/translations/en_UK.json
+// @resource          trans-es_ES             https://raw.githubusercontent.com/Sv443/BetterYTM/f1e9889/assets/translations/es_ES.json
+// @resource          trans-fr_FR             https://raw.githubusercontent.com/Sv443/BetterYTM/f1e9889/assets/translations/fr_FR.json
+// @resource          trans-hi_IN             https://raw.githubusercontent.com/Sv443/BetterYTM/f1e9889/assets/translations/hi_IN.json
+// @resource          trans-ja_JA             https://raw.githubusercontent.com/Sv443/BetterYTM/f1e9889/assets/translations/ja_JA.json
+// @resource          trans-pt_BR             https://raw.githubusercontent.com/Sv443/BetterYTM/f1e9889/assets/translations/pt_BR.json
+// @resource          trans-zh_CN             https://raw.githubusercontent.com/Sv443/BetterYTM/f1e9889/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
@@ -190,7 +190,7 @@ var PluginIntent;
 })(PluginIntent || (PluginIntent = {}));const modeRaw = "development";
 const branchRaw = "develop";
 const hostRaw = "github";
-const buildNumberRaw = "5339fe9";
+const buildNumberRaw = "f1e9889";
 /** 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 */
@@ -3718,9 +3718,9 @@ function initShowVotes() {
                 return error("Couldn't fetch votes from ReturnYouTubeDislikes API");
             labelLikes.dataset.watchId = (_a = getWatchId()) !== null && _a !== void 0 ? _a : "";
             labelLikes.textContent = formatVoteNumber(voteObj.likes);
-            labelLikes.title = labelLikes.ariaLabel = t("vote_label_likes", formatVoteNumber(voteObj.likes, "full"));
+            labelLikes.title = labelLikes.ariaLabel = tp("vote_label_likes", voteObj.likes, formatVoteNumber(voteObj.likes, "full"));
             labelDislikes.textContent = formatVoteNumber(voteObj.dislikes);
-            labelDislikes.title = labelDislikes.ariaLabel = t("vote_label_dislikes", formatVoteNumber(voteObj.dislikes, "full"));
+            labelDislikes.title = labelDislikes.ariaLabel = tp("vote_label_dislikes", voteObj.dislikes, formatVoteNumber(voteObj.dislikes, "full"));
             labelDislikes.dataset.watchId = (_b = getWatchId()) !== null && _b !== void 0 ? _b : "";
         }));
     });

+ 3 - 3
src/features/layout.ts

@@ -2,7 +2,7 @@ import { addParent, autoPlural, debounce, fetchAdvanced, pauseFor } from "@sv443
 import { getFeature, getFeatures } from "../config.js";
 import { siteEvents } from "../siteEvents.js";
 import { addSelectorListener } from "../observers.js";
-import { error, getResourceUrl, log, warn, t, onInteraction, openInTab, getBestThumbnailUrl, getDomain, addStyle, currentMediaType, domLoaded, waitVideoElementReady, getVideoTime, fetchCss, addStyleFromResource, fetchVideoVotes, getWatchId, type VideoVotesObj, getLocale } from "../utils/index.js";
+import { error, getResourceUrl, log, warn, t, onInteraction, openInTab, getBestThumbnailUrl, getDomain, addStyle, currentMediaType, domLoaded, waitVideoElementReady, getVideoTime, fetchCss, addStyleFromResource, fetchVideoVotes, getWatchId, type VideoVotesObj, getLocale, tp } from "../utils/index.js";
 import { mode, scriptInfo } from "../constants.js";
 import { openCfgMenu } from "../menu/menu_old.js";
 import { createCircularBtn, createRipple } from "../components/index.js";
@@ -752,10 +752,10 @@ export async function initShowVotes() {
 
     labelLikes.dataset.watchId = getWatchId() ?? "";
     labelLikes.textContent = formatVoteNumber(voteObj.likes);
-    labelLikes.title = labelLikes.ariaLabel = t("vote_label_likes", formatVoteNumber(voteObj.likes, "full"));
+    labelLikes.title = labelLikes.ariaLabel = tp("vote_label_likes", voteObj.likes, formatVoteNumber(voteObj.likes, "full"));
 
     labelDislikes.textContent = formatVoteNumber(voteObj.dislikes);
-    labelDislikes.title = labelDislikes.ariaLabel = t("vote_label_dislikes", formatVoteNumber(voteObj.dislikes, "full"));
+    labelDislikes.title = labelDislikes.ariaLabel = tp("vote_label_dislikes", voteObj.dislikes, formatVoteNumber(voteObj.dislikes, "full"));
     labelDislikes.dataset.watchId = getWatchId() ?? "";
   });
 }