UI Ingredients v1.6.0
Github

Locale Provider

A component for providing locale information to the rest of the application.

Usage

<!-- src/+layout.svelte -->
<script>
  import {LocaleProvider} from 'ui-ingredients';

  let {children} = $props();
</script>

<LocaleProvider locale="en-US">
  {@render children()}
</LocaleProvider>

API Reference

Root

Prop Default Description
locale 'en-US' string The locale to use for the application.