mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 10:59:13 +00:00
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>
This commit is contained in:
parent
23bb0abc23
commit
1a0c7edeba
11 changed files with 102 additions and 1 deletions
|
@ -16,6 +16,7 @@ pub struct BootstrapOptions {
|
|||
pub cpu_count: usize,
|
||||
pub debug_flag: bool,
|
||||
pub enable_testing_features: bool,
|
||||
pub locale: String,
|
||||
pub location: Option<ModuleSpecifier>,
|
||||
/// Sets `Deno.noColor` in JS runtime.
|
||||
pub no_color: bool,
|
||||
|
@ -47,6 +48,7 @@ impl Default for BootstrapOptions {
|
|||
enable_testing_features: Default::default(),
|
||||
debug_flag: Default::default(),
|
||||
ts_version: Default::default(),
|
||||
locale: "en-EN".to_string(),
|
||||
location: Default::default(),
|
||||
unstable: Default::default(),
|
||||
inspect: Default::default(),
|
||||
|
@ -63,6 +65,7 @@ impl BootstrapOptions {
|
|||
"cpuCount": self.cpu_count,
|
||||
"debugFlag": self.debug_flag,
|
||||
"denoVersion": self.runtime_version,
|
||||
"locale": self.locale,
|
||||
"location": self.location,
|
||||
"noColor": self.no_color,
|
||||
"isTty": self.is_tty,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue