diff options
author | Luca Matei Pintilie <lucafulger@gmail.com> | 2022-10-18 15:33:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-18 15:33:35 +0200 |
commit | 1a0c7edebacc76a70e57dfd494e24420fa77b56b (patch) | |
tree | afa26f8db4dd121f548e19f92f84c1da589708c4 /cli/worker.rs | |
parent | 23bb0abc230bd796e60bb8e22ccc39aef5629158 (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/worker.rs')
-rw-r--r-- | cli/worker.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cli/worker.rs b/cli/worker.rs index 581d4f90f..10fe5b36f 100644 --- a/cli/worker.rs +++ b/cli/worker.rs @@ -418,6 +418,7 @@ pub async fn create_main_worker( .log_level() .map_or(false, |l| l == log::Level::Debug), enable_testing_features: ps.options.enable_testing_features(), + locale: deno_core::v8::icu::get_language_tag(), location: ps.options.location_flag().map(ToOwned::to_owned), no_color: !colors::use_color(), is_tty: colors::is_tty(), @@ -534,6 +535,7 @@ fn create_web_worker_callback( .log_level() .map_or(false, |l| l == log::Level::Debug), enable_testing_features: ps.options.enable_testing_features(), + locale: deno_core::v8::icu::get_language_tag(), location: Some(args.main_module.clone()), no_color: !colors::use_color(), is_tty: colors::is_tty(), |