[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [snowflake-webext/master] Filter out English language options
commit bbfe7445dd100c2db18c78bede05206a213cefb5
Author: Arlo Breault <abreault@xxxxxxxxxxxxx>
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();
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits