Sv443 7 mesi fa
parent
commit
cdd078dc6b
2 ha cambiato i file con 5 aggiunte e 9 eliminazioni
  1. 2 2
      assets/translations/README.md
  2. 3 7
      src/tools/tr-progress.ts

+ 2 - 2
assets/translations/README.md

@@ -16,9 +16,9 @@ To submit or edit a translation, please follow [this guide](../../contributing.m
 ### Translation progress:
 |   | Locale | Translated keys | Based on |
 | :----: | ------ | --------------- | :------: |
-|  | [`en_US`](./en_US.json) | 296 (default locale) |  |
+|  | [`en_US`](./en_US.json) | `296` (default locale) |  |
 | ✅ | [`de_DE`](./de_DE.json) | `296/296` (100%) | ─ |
-|  | [`en_UK`](./en_UK.json) | `296` (100%) | `en_US` |
+|  | [`en_UK`](./en_UK.json) | `296/296` (100%) | `en_US` |
 | ‼️ | [`es_ES`](./es_ES.json) | `202/296` (68.2%) | ─ |
 | ‼️ | [`fr_FR`](./fr_FR.json) | `202/296` (68.2%) | ─ |
 | ‼️ | [`hi_IN`](./hi_IN.json) | `202/296` (68.2%) | ─ |

+ 3 - 7
src/tools/tr-progress.ts

@@ -69,15 +69,11 @@ async function run() {
 
     const keysCol = (
       locale === "en_US"
-        ? `${origKeys} (default locale)`
-        : (
-          baseTr
-            ? `\`${origKeys}\` (100%)`
-            : `\`${trKeys}/${origKeys}\` (${percent}%)`
-        )
+        ? `\`${origKeys}\` (default locale)`
+        : `\`${trKeys}/${origKeys}\` (${percent}%)`
     );
 
-    progTableLines.push(`| ${locale === "en_US" || baseTr ? "" : sym} | [\`${locale}\`](./${locale}.json) | ${keysCol} | ${baseTr ? `\`${baseTr}\`` : (locale === "en_US" ? "" : "─")} |`);
+    progTableLines.push(`| ${locale === "en_US" || baseTr ? "" : sym} | [\`${locale}\`](./${locale}.json) | ${keysCol} | ${baseTr ? `\`${baseTr}\`` : (locale === "en_US" ? "" : "─")} |`);
     console.log(`  ${sym} ${locale}: ${trKeys}/${origKeys} (${percent}%)${baseTr ? ` (base: ${baseTr})`: ""}`);
   }