Ver código fonte

docs: update header

Sv443 5 meses atrás
pai
commit
015ab7cb07
4 arquivos alterados com 23 adições e 18 exclusões
  1. 6 5
      README-summary.md
  2. 6 5
      README.md
  3. 6 6
      assets/locales.json
  4. 5 2
      src/tools/gen-readme.ts

+ 6 - 5
README-summary.md

@@ -3,12 +3,13 @@
 <h1><img src="https://raw.githubusercontent.com/Sv443/BetterYTM/main/assets/images/logo/logo_128.png" width="96" height="96" /><br>BetterYTM</h1>
 
 ### Lots of configurable layout and user experience improvements for YouTube Music™ and YouTube™
-🇨🇳&nbsp;Chinese (simpl.), 🇬🇧&nbsp;English (GB), 🇺🇸&nbsp;English (US), 🇫🇷&nbsp;French, 🇩🇪&nbsp;German, 🇮🇳&nbsp;Hindi, 🇯🇵&nbsp;Japanese, 🇧🇷&nbsp;Portuguese, 🇪🇸&nbsp;Spanish
+
+#### [**Features**](#features) • [**Installation**](#installation) • [**Integrations**](#integrations) • [**Plugins**](#plugins) • [**Support**](#support) • [**Development**](#development) • [**Attributions**](#attributions) • [**Disclaimers**](#disclaimers)
+---
+
+Available in 🇨🇳&nbsp;Chinese (simpl.), 🇬🇧&nbsp;English (GB), 🇺🇸&nbsp;English (US), 🇫🇷&nbsp;French (FR), 🇩🇪&nbsp;German (DE), 🇮🇳&nbsp;Hindi (IN), 🇯🇵&nbsp;Japanese (JP), 🇧🇷&nbsp;Portuguese (BR), 🇪🇸&nbsp;Spanish (ES)
 <!-- END OF GENERATED CONTENT -->
 <!-- </{{HEADER}}> -->
-[**Features**](#features) • [**Installation**](#installation) • [**Integrations**](#integrations) • [**Plugins**](#plugins) • [**Support**](#support) • [**Development**](#development) • [**Attributions**](#attributions) • [**Disclaimers**](#disclaimers)
-  
----
 
 <br>
 
@@ -24,7 +25,7 @@ All of these can be toggled and configured in the configuration menu.
   - Improve clickability of song titles and thumbnails when wanting to open them in a new tab
   - Remove the tracking parameter from URLs in the share menu
   - Automatically close permanent notifications
-- Input / Interaction:
+- Input & Interaction:
   - Auto-like songs and videos of your favorite creators on both YouTube and YouTube Music
   - Use arrow keys to skip forward or backward by a configurable amount of time
   - Press number keys to skip to a percentage of the currently playing song

+ 6 - 5
README.md

@@ -4,12 +4,13 @@
 <h1><img src="https://raw.githubusercontent.com/Sv443/BetterYTM/main/assets/images/logo/logo_128.png" width="96" height="96" /><br>BetterYTM</h1>
 
 ### Lots of configurable layout and user experience improvements for YouTube Music™ and YouTube™
-🇨🇳&nbsp;Chinese (simpl.), 🇬🇧&nbsp;English (GB), 🇺🇸&nbsp;English (US), 🇫🇷&nbsp;French, 🇩🇪&nbsp;German, 🇮🇳&nbsp;Hindi, 🇯🇵&nbsp;Japanese, 🇧🇷&nbsp;Portuguese, 🇪🇸&nbsp;Spanish
+
+#### [**Features**](#features) • [**Installation**](#installation) • [**Integrations**](#integrations) • [**Plugins**](#plugins) • [**Support**](#support) • [**Development**](#development) • [**Attributions**](#attributions) • [**Disclaimers**](#disclaimers)
+---
+
+Available in 🇨🇳&nbsp;Chinese (simpl.), 🇬🇧&nbsp;English (GB), 🇺🇸&nbsp;English (US), 🇫🇷&nbsp;French (FR), 🇩🇪&nbsp;German (DE), 🇮🇳&nbsp;Hindi (IN), 🇯🇵&nbsp;Japanese (JP), 🇧🇷&nbsp;Portuguese (BR), 🇪🇸&nbsp;Spanish (ES)
 <!-- END OF GENERATED CONTENT -->
 <!-- </{{HEADER}}> -->
-[**Features**](#features) • [**Installation**](#installation) • [**Integrations**](#integrations) • [**Plugins**](#plugins) • [**Support**](#support) • [**Development**](#development) • [**Attributions**](#attributions) • [**Disclaimers**](#disclaimers)
-  
----
 
 </div>
 <br>
@@ -26,7 +27,7 @@ All of these can be toggled and configured in the configuration menu.
   - Improve clickability of song titles and thumbnails when wanting to open them in a new tab
   - Remove the tracking parameter from URLs in the share menu
   - Automatically close permanent notifications
-- Input / Interaction:
+- Input & Interaction:
   - Auto-like songs and videos of your favorite creators on both YouTube and YouTube Music
   - Use arrow keys to skip forward or backward by a configurable amount of time
   - Press number keys to skip to a percentage of the currently playing song

+ 6 - 6
assets/locales.json

@@ -1,7 +1,7 @@
 {
   "de-DE": {
     "name": "Deutsch (Deutschland)",
-    "nameEnglish": "German",
+    "nameEnglish": "German (DE)",
     "emoji": "🇩🇪",
     "userscriptDesc": "Konfigurierbare Layout- und Benutzererfahrungs-Verbesserungen für YouTube Music™ und YouTube™",
     "authors": ["Sv443"],
@@ -25,7 +25,7 @@
   },
   "es-ES": {
     "name": "Español (España)",
-    "nameEnglish": "Spanish",
+    "nameEnglish": "Spanish (ES)",
     "emoji": "🇪🇸",
     "userscriptDesc": "Mejoras de diseño y experiencia de usuario configurables para YouTube Music™ y YouTube™",
     "authors": ["Sv443"],
@@ -33,7 +33,7 @@
   },
   "fr-FR": {
     "name": "Français (France)",
-    "nameEnglish": "French",
+    "nameEnglish": "French (FR)",
     "emoji": "🇫🇷",
     "userscriptDesc": "Améliorations de la mise en page et de l'expérience utilisateur configurables pour YouTube Music™ et YouTube™",
     "authors": ["Sv443"],
@@ -41,7 +41,7 @@
   },
   "hi-IN": {
     "name": "हिंदी (भारत)",
-    "nameEnglish": "Hindi",
+    "nameEnglish": "Hindi (IN)",
     "emoji": "🇮🇳",
     "userscriptDesc": "YouTube Music™ और YouTube™ के लिए कॉन्फ़िगर करने योग्य लेआउट और उपयोगकर्ता अनुभव में सुधार",
     "authors": ["Sv443"],
@@ -49,7 +49,7 @@
   },
   "ja-JP": {
     "name": "日本語 (日本)",
-    "nameEnglish": "Japanese",
+    "nameEnglish": "Japanese (JP)",
     "emoji": "🇯🇵",
     "userscriptDesc": "YouTube Music™ と YouTube™ の構成可能なレイアウトとユーザー エクスペリエンスの向上",
     "authors": ["Sv443"],
@@ -57,7 +57,7 @@
   },
   "pt-BR": {
     "name": "Português (Brasil)",
-    "nameEnglish": "Portuguese",
+    "nameEnglish": "Portuguese (BR)",
     "emoji": "🇧🇷",
     "userscriptDesc": "Melhorias configuráveis no layout e na experiência do usuário para o YouTube Music™ e o YouTube™",
     "authors": ["Sv443"],

+ 5 - 2
src/tools/gen-readme.ts

@@ -97,8 +97,11 @@ async function genHeader() {
 <h1><img src="https://raw.githubusercontent.com/Sv443/BetterYTM/main/assets/images/logo/logo_128.png" width="96" height="96" /><br>${pkgJson.userscriptName}</h1>
 
 ### ${pkgJson.description}
-${langStr}\
-`;
+
+#### [**Features**](#features) • [**Installation**](#installation) • [**Integrations**](#integrations) • [**Plugins**](#plugins) • [**Support**](#support) • [**Development**](#development) • [**Attributions**](#attributions) • [**Disclaimers**](#disclaimers)
+---
+
+Available in ${langStr}`;
 }
 
 async function genPluginList() {