diff --git a/messages/en.json b/messages/en.json
index 56b66cf..9241bb9 100644
--- a/messages/en.json
+++ b/messages/en.json
@@ -51,6 +51,8 @@
"selectUnit": "Select a unit",
"settingsButton": "Settings",
"settingsHeading": "Settings",
+ "showBrowserSupport": "Show Browser Support",
+ "showBrowserSupportHint": "Toggle to hide or show Browser Details/Support",
"skipLink": "Skip to content",
"specification": "Specification",
"theme": "Theme",
diff --git a/messages/sv.json b/messages/sv.json
index 28f7f8f..50a2f4d 100644
--- a/messages/sv.json
+++ b/messages/sv.json
@@ -43,7 +43,7 @@
"notAvailableInBrowser": "Inte tillgänglig i {browserName}",
"options": "Alternativ",
"output": "Utdata",
- "partialSupport": "Delvis stöd",
+ "partialSupport": "Delvist stöd",
"resolvedOptions": "Alternativ som används",
"secondaryFormatters": "Sekundära formatterare",
"seeAlso": "Se också",
@@ -51,6 +51,8 @@
"selectUnit": "Välj enhet",
"settingsButton": "Inställningar",
"settingsHeading": "Inställningar",
+ "showBrowserSupport": "Visa Webbläsarstöd",
+ "showBrowserSupportHint": "Visa eller dölj stöd för webbläsare",
"skipLink": "Hoppa till innehåll",
"specification": "Specifikation",
"theme": "Tema",
diff --git a/src/lib/components/pages/Playground/Playground.svelte b/src/lib/components/pages/Playground/Playground.svelte
index 4890d73..80db607 100644
--- a/src/lib/components/pages/Playground/Playground.svelte
+++ b/src/lib/components/pages/Playground/Playground.svelte
@@ -33,6 +33,7 @@
import BrowserSupport from '$lib/components/ui/BrowserSupport/BrowserSupport.svelte';
import Grid from '$lib/components/ui/Grid.svelte';
import { getMessages } from '$lib/i18n/util';
+ import { settings } from '$lib/store/settings';
export let data: { [key: string]: BrowserSupportDataForMethod };
export let locale: string;
@@ -43,7 +44,9 @@
$: isDesktop = Boolean(matchMedia?.matches);
$: schema = validateAndUpdateSchema(numberFormatSchema);
- $: browserSupportData = schema ? { ...data[schema.method] } : { ...data.NumberFormat };
+ $: browserSupportData = schema
+ ? { ...data[schema.method] }
+ : { optionsSupport: undefined, formattersSupport: undefined };
onMount(() => {
if (getSchemaParam()) {
@@ -123,7 +126,9 @@
-
+ {#if $settings.showBrowserSupport}
+
+ {/if}
diff --git a/src/lib/components/pages/Playground/PlaygroundOptions.svelte b/src/lib/components/pages/Playground/PlaygroundOptions.svelte
index 3c6b737..257673f 100644
--- a/src/lib/components/pages/Playground/PlaygroundOptions.svelte
+++ b/src/lib/components/pages/Playground/PlaygroundOptions.svelte
@@ -13,6 +13,7 @@
import Radio from '$lib/components/ui/Radio.svelte';
import { optionIsActive } from '$lib/playground/validate';
import { getMessages } from '$lib/i18n/util';
+ import { settings } from '$lib/store/settings';
export let schema: PlaygroundSchema<'NumberFormat'>;
export let support: BrowserSupportDataForOptions | undefined;
@@ -29,7 +30,7 @@
option={option.name}
onChange={onChangeOption}
hideFullSupport
- support={support?.[option.name]?.coverage}
+ support={$settings.showBrowserSupport ? support?.[option.name]?.coverage : undefined}
>
{#if option.inputType === 'select'}