summaryrefslogtreecommitdiff
path: root/cli/standalone.rs
diff options
context:
space:
mode:
authorLuca Matei Pintilie <lucafulger@gmail.com>2022-10-18 15:33:35 +0200
committerGitHub <noreply@github.com>2022-10-18 15:33:35 +0200
commit1a0c7edebacc76a70e57dfd494e24420fa77b56b (patch)
treeafa26f8db4dd121f548e19f92f84c1da589708c4 /cli/standalone.rs
parent23bb0abc230bd796e60bb8e22ccc39aef5629158 (diff)
feat: introduce navigator.language (#12322)
Link to the spec: https://html.spec.whatwg.org/multipage/system-state.html#dom-navigator-language-dev Co-authored-by: Bartek IwaƄczuk <biwanczuk@gmail.com>
Diffstat (limited to 'cli/standalone.rs')
-rw-r--r--cli/standalone.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/cli/standalone.rs b/cli/standalone.rs
index 0c454ce77..528c55f1c 100644
--- a/cli/standalone.rs
+++ b/cli/standalone.rs
@@ -276,6 +276,7 @@ pub async fn run(
.unwrap_or(1),
debug_flag: metadata.log_level.map_or(false, |l| l == Level::Debug),
enable_testing_features: false,
+ locale: deno_core::v8::icu::get_language_tag(),
location: metadata.location,
no_color: !colors::use_color(),
is_tty: colors::is_tty(),