[tor-commits] [snowflake-webext/master] Filter out English language options

arlo at torproject.org arlo at torproject.org
Fri Feb 5 16:01:16 UTC 2021


commit bbfe7445dd100c2db18c78bede05206a213cefb5
Author: Arlo Breault <abreault at wikimedia.org>
Date:   Thu Feb 4 17:02:40 2021 -0500

    Filter out English language options
    
    On the next line 'en_US' is pushed unconditionally.
    
    Part of #12
    
    We can always remove this if transifex is ever updated to stop producing
    these unnecessary translations.
---
 make.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/make.js b/make.js
index e00a88a..46857db 100755
--- a/make.js
+++ b/make.js
@@ -71,7 +71,7 @@ var getDisplayName = function(locale) {
 var getDirs = function() {
   let dirs = readdirSync('translation').filter((f) => {
     const s = statSync(`translation/${f}`);
-    return s.isDirectory() && !/^\./.test(f);
+    return s.isDirectory() && !/^(\.|en)/.test(f);
   });
   dirs.push('en_US');
   dirs.sort();



More information about the tor-commits mailing list