Skip to content

Commit 55cd188

Browse files
authored
chore: Update translations script to special case en-GB (#8106)
* chore: Update translations needed script to special case en-GB * update translateions needed
1 parent a27ee05 commit 55cd188

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

build/translations.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,15 @@ filepaths.forEach((filepath) => {
2121
}
2222

2323
const target = require(filepath);
24+
25+
// Special case for English, the assumption being that since the keys are English only
26+
// a few strings need to be altered for regional differences, e.g. en-GB.
27+
if (filename.startsWith('en-')) {
28+
console.log(`${filename} English - should be manually checked.`);
29+
tableData.push([`${filename} (has ${Object.keys(target).length})`, 'Needs manual checking. Can safely use most default strings.']);
30+
return;
31+
}
32+
2433
const missing = [];
2534

2635
for (const string in source) {

docs/translations-needed.md

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,7 @@ This default value is hardcoded as a default to the localize method in the SeekB
367367
| | Opacity |
368368
| | Text Background |
369369
| | Caption Area Background |
370+
| en-GB.json (has 1) | Needs manual checking. Can safely use most default strings.
370371
| es.json (Complete) | |
371372
| et.json (missing 5) | No content |
372373
| | Color |
@@ -775,21 +776,7 @@ This default value is hardcoded as a default to the localize method in the SeekB
775776
| | Opacity |
776777
| | Text Background |
777778
| | Caption Area Background |
778-
| tr.json (missing 18) | Audio Player |
779-
| | Video Player |
780-
| | Seek to live, currently behind live |
781-
| | Seek to live, currently playing live |
782-
| | Progress Bar |
783-
| | progress bar timing: currentTime={1} duration={2} |
784-
| | Volume Level |
785-
| | Reset |
786-
| | restore all settings to the default values |
787-
| | End of dialog window. |
788-
| | {1} is loading. |
789-
| | Exit Picture-in-Picture |
790-
| | Picture-in-Picture |
791-
| | No content |
792-
| | Color |
779+
| tr.json (missing 4) | Color |
793780
| | Opacity |
794781
| | Text Background |
795782
| | Caption Area Background |

lang/en-GB.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"Color": "Colour"
3+
}
4+

0 commit comments

Comments
 (0)