diff --git a/assets/translations/README.md b/assets/translations/README.md
index f7b256d1da..6dbfa6a265 100644
--- a/assets/translations/README.md
+++ b/assets/translations/README.md
@@ -6,15 +6,15 @@ To submit or edit a translation, please follow [this guide](../../contributing.m
### Translation progress:
| Locale | Translated keys | Based on |
| ------ | --------------- | :------: |
-| `en_US` | 120 (default locale) | |
-| `de_DE` | 🚫 `97/120` (80.8%) | ─ |
-| `en_UK` | ✅ `120/120` (100.0%) | `en_US` |
-| `es_ES` | 🚫 `97/120` (80.8%) | ─ |
-| `fr_FR` | 🚫 `97/120` (80.8%) | ─ |
-| `hi_IN` | 🚫 `97/120` (80.8%) | ─ |
-| `ja_JA` | 🚫 `97/120` (80.8%) | ─ |
-| `pt_BR` | 🚫 `97/120` (80.8%) | ─ |
-| `zh_CN` | 🚫 `97/120` (80.8%) | ─ |
+| [`en_US`](./en_US.json) | 120 (default locale) | |
+| [`de_DE`](./de_DE.json) | 🚫 `97/120` (80.8%) | ─ |
+| [`en_UK`](./en_UK.json) | ✅ `120/120` (100.0%) | `en_US` |
+| [`es_ES`](./es_ES.json) | 🚫 `97/120` (80.8%) | ─ |
+| [`fr_FR`](./fr_FR.json) | 🚫 `97/120` (80.8%) | ─ |
+| [`hi_IN`](./hi_IN.json) | 🚫 `97/120` (80.8%) | ─ |
+| [`ja_JA`](./ja_JA.json) | 🚫 `97/120` (80.8%) | ─ |
+| [`pt_BR`](./pt_BR.json) | 🚫 `97/120` (80.8%) | ─ |
+| [`zh_CN`](./zh_CN.json) | 🚫 `97/120` (80.8%) | ─ |
@@ -25,7 +25,7 @@ This means you need to manually check against the base translations for missing
### Missing keys:
-de_DE
- 23 missing keys (click to show)
+de_DE
- 23 missing keys (click to show)
| Key | English text |
| --- | ------------ |
@@ -53,9 +53,9 @@ This means you need to manually check against the base translations for missing
| `feature_helptext_anchorImprovements` | `Some elements on the page are only clickable with the left mouse button, which means you can't open them in a new tab by middle-clicking or through the context menu using shift + right-click. This feature adds links to a lot of them or enlarges existing ones to make clicking easier.` |
| `feature_helptext_logLevel` | `This is really only needed for debugging purposes. If you have a problem with the userscript, you should set this to a verbose setting so you can include the JavaScript console log in your GitHub issue.` |
-
+
-es_ES
- 23 missing keys (click to show)
+es_ES
- 23 missing keys (click to show)
| Key | English text |
| --- | ------------ |
@@ -83,9 +83,9 @@ This means you need to manually check against the base translations for missing
| `feature_helptext_anchorImprovements` | `Some elements on the page are only clickable with the left mouse button, which means you can't open them in a new tab by middle-clicking or through the context menu using shift + right-click. This feature adds links to a lot of them or enlarges existing ones to make clicking easier.` |
| `feature_helptext_logLevel` | `This is really only needed for debugging purposes. If you have a problem with the userscript, you should set this to a verbose setting so you can include the JavaScript console log in your GitHub issue.` |
-
+
-fr_FR
- 23 missing keys (click to show)
+fr_FR
- 23 missing keys (click to show)
| Key | English text |
| --- | ------------ |
@@ -113,9 +113,9 @@ This means you need to manually check against the base translations for missing
| `feature_helptext_anchorImprovements` | `Some elements on the page are only clickable with the left mouse button, which means you can't open them in a new tab by middle-clicking or through the context menu using shift + right-click. This feature adds links to a lot of them or enlarges existing ones to make clicking easier.` |
| `feature_helptext_logLevel` | `This is really only needed for debugging purposes. If you have a problem with the userscript, you should set this to a verbose setting so you can include the JavaScript console log in your GitHub issue.` |
-
+
-hi_IN
- 23 missing keys (click to show)
+hi_IN
- 23 missing keys (click to show)
| Key | English text |
| --- | ------------ |
@@ -143,9 +143,9 @@ This means you need to manually check against the base translations for missing
| `feature_helptext_anchorImprovements` | `Some elements on the page are only clickable with the left mouse button, which means you can't open them in a new tab by middle-clicking or through the context menu using shift + right-click. This feature adds links to a lot of them or enlarges existing ones to make clicking easier.` |
| `feature_helptext_logLevel` | `This is really only needed for debugging purposes. If you have a problem with the userscript, you should set this to a verbose setting so you can include the JavaScript console log in your GitHub issue.` |
-
+
-ja_JA
- 23 missing keys (click to show)
+ja_JA
- 23 missing keys (click to show)
| Key | English text |
| --- | ------------ |
@@ -173,9 +173,9 @@ This means you need to manually check against the base translations for missing
| `feature_helptext_anchorImprovements` | `Some elements on the page are only clickable with the left mouse button, which means you can't open them in a new tab by middle-clicking or through the context menu using shift + right-click. This feature adds links to a lot of them or enlarges existing ones to make clicking easier.` |
| `feature_helptext_logLevel` | `This is really only needed for debugging purposes. If you have a problem with the userscript, you should set this to a verbose setting so you can include the JavaScript console log in your GitHub issue.` |
-
+
-pt_BR
- 23 missing keys (click to show)
+pt_BR
- 23 missing keys (click to show)
| Key | English text |
| --- | ------------ |
@@ -203,9 +203,9 @@ This means you need to manually check against the base translations for missing
| `feature_helptext_anchorImprovements` | `Some elements on the page are only clickable with the left mouse button, which means you can't open them in a new tab by middle-clicking or through the context menu using shift + right-click. This feature adds links to a lot of them or enlarges existing ones to make clicking easier.` |
| `feature_helptext_logLevel` | `This is really only needed for debugging purposes. If you have a problem with the userscript, you should set this to a verbose setting so you can include the JavaScript console log in your GitHub issue.` |
-
+
-zh_CN
- 23 missing keys (click to show)
+zh_CN
- 23 missing keys (click to show)
| Key | English text |
| --- | ------------ |
@@ -233,4 +233,4 @@ This means you need to manually check against the base translations for missing
| `feature_helptext_anchorImprovements` | `Some elements on the page are only clickable with the left mouse button, which means you can't open them in a new tab by middle-clicking or through the context menu using shift + right-click. This feature adds links to a lot of them or enlarges existing ones to make clicking easier.` |
| `feature_helptext_logLevel` | `This is really only needed for debugging purposes. If you have a problem with the userscript, you should set this to a verbose setting so you can include the JavaScript console log in your GitHub issue.` |
-
+
diff --git a/contributing.md b/contributing.md
index 31de2574f4..3f77e6e263 100644
--- a/contributing.md
+++ b/contributing.md
@@ -138,7 +138,7 @@ If you need specific events to be added or modified, please [submit an issue.](h
-Static interaction example - click to expand
+Static interaction Example (click to expand)
#### Example:
```ts
@@ -153,7 +153,7 @@ console.log(`BetterYTM's version is '${BYTM.version} #${BYTM.buildNumber}'`);
-Dynamic interaction examples - click to expand
+Dynamic interaction examples (click to expand)
#### Basic format:
```ts
@@ -254,7 +254,7 @@ An easy way to do this might be to include BetterYTM as a Git submodule, as long
> - `selector` - The CSS selector to observe for changes.
> - `options` - The options for the listener. See the [UserUtils SelectorObserver documentation](https://github.com/Sv443-Network/UserUtils#selectorobserver)
>
-> Example - click to expand
+> Example (click to expand)
>
> ```ts
> // wait for the observers to exist
@@ -289,7 +289,7 @@ An easy way to do this might be to include BetterYTM as a Git submodule, as long
> Arguments:
> - `resourceName` - The name of the resource to get the URL for.
>
-> Example - click to expand
+> Example (click to expand)
>
> ```ts
> const deleteButtonImg = document.createElement("img");
@@ -311,7 +311,7 @@ An easy way to do this might be to include BetterYTM as a Git submodule, as long
> Returns the unique session ID that is generated on every page load.
> It should persist between history navigations, but not between page reloads.
>
-> Example - click to expand
+> Example (click to expand)
>
> ```ts
> const sessionId = unsafeWindow.BYTM.getSessionId();
@@ -337,7 +337,7 @@ An easy way to do this might be to include BetterYTM as a Git submodule, as long
> In order for that edge case not to throw an error, the function would need to be called in response to a user interaction event (e.g. click) due to the strict automated interaction policy in browsers.
> Resolves with a number of seconds or `null` if the time couldn't be determined.
>
-> Example - click to expand
+> Example (click to expand)
>
> ```ts
> try {
@@ -366,7 +366,7 @@ An easy way to do this might be to include BetterYTM as a Git submodule, as long
> - `translationKey` - The key of the translation to get.
> - `...values` - A spread parameter of values that can be converted to strings to replace the numbered placeholders in the translation with.
>
-> Example - click to expand
+> Example (click to expand)
>
> ```ts
> const customConfigMenuTitle = document.createElement("div");
@@ -395,7 +395,7 @@ An easy way to do this might be to include BetterYTM as a Git submodule, as long
> - `num` - The number of items to determine the pluralization identifier from. Can also be an array or NodeList.
> - `...values` - A spread parameter of values that can be converted to strings to replace the numbered placeholders in the translation with.
>
-> Example - click to expand
+> Example (click to expand)
>
> ```ts
> try {
diff --git a/src/tools/tr-progress.ts b/src/tools/tr-progress.ts
index 8f18828f0b..4587292602 100644
--- a/src/tools/tr-progress.ts
+++ b/src/tools/tr-progress.ts
@@ -64,7 +64,7 @@ async function run() {
const baseTr = trFiles[locale as TrLocale]?.base;
- tableLines.push(`| \`${locale}\` | ${keysCol} | ${baseTr ? `\`${baseTr}\`` : (locale === "en_US" ? "" : "─")} |`);
+ tableLines.push(`| [\`${locale}\`](./${locale}.json) | ${keysCol} | ${baseTr ? `\`${baseTr}\`` : (locale === "en_US" ? "" : "─")} |`);
console.log(` ${sym} ${locale}: ${trKeys}/${origKeys} (${percent}%)${baseTr ? ` (base: ${baseTr})`: ""}`);
}
@@ -80,11 +80,11 @@ async function run() {
}
if(lines.length > 0) {
missingKeys.push(`
-${locale}
- ${lines.length} missing ${autoPlural("key", lines)} (click to show)
\n
+${locale}
- ${lines.length} missing ${autoPlural("key", lines)} (click to show)
\n
| Key | English text |
| --- | ------------ |
${lines.join("\n")}\n
- `);
+
`);
}
}