Skip to content

Commit

Permalink
show all available i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
mskocik committed Aug 22, 2023
1 parent a16c63e commit bab5931
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/documentation/08-localization/page.svx
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
---
title: Localization
title: Localization X
---

<script>
import * as i18n from '$lib/i18n/index.js';

const keys = Object.keys(i18n).filter(k => k !== 'default').join(' | ');
</script>

By default date picker uses english locale. And at the moment there is only few locales available
(PRs for additional locales are more than welcome).
(PRs for additional locales are more than welcome).

Available locales: <code>{keys}</code>

Setting locale is perfect use case for using [global configuration](/global-config).

0 comments on commit bab5931

Please sign in to comment.