diff --git a/NodeChrome/wrap_chrome_binary b/NodeChrome/wrap_chrome_binary index 0f01b22ea3..d23c0f5f41 100755 --- a/NodeChrome/wrap_chrome_binary +++ b/NodeChrome/wrap_chrome_binary @@ -14,3 +14,11 @@ umask 002 exec -a "\$0" "$BASE_PATH" --no-sandbox "\$@" _EOF chmod +x "$WRAPPER_PATH" + +# Debian/Ubuntu seems to not respect --lang, it instead needs to be a LANGUAGE environment var +# See: https://stackoverflow.com/a/41893197/359999 +for var in "$@"; do + if [[ $var == --lang=* ]]; then + export LANGUAGE=${var//--lang=} + fi +done diff --git a/NodeEdge/wrap_edge_binary b/NodeEdge/wrap_edge_binary index 93a8847924..4e998663bf 100755 --- a/NodeEdge/wrap_edge_binary +++ b/NodeEdge/wrap_edge_binary @@ -14,3 +14,11 @@ umask 002 exec -a "\$0" "$BASE_PATH" --no-sandbox "\$@" _EOF chmod +x "$WRAPPER_PATH" + +# Debian/Ubuntu seems to not respect --lang, it instead needs to be a LANGUAGE environment var +# See: https://stackoverflow.com/a/41893197/359999 +for var in "$@"; do + if [[ $var == --lang=* ]]; then + export LANGUAGE=${var//--lang=} + fi +done