fimo 0.3.3-staging.23 → 0.3.3-staging.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -85,7 +85,19 @@ Read the active locale with `useLocale()` when component logic needs it:
85
85
  ```tsx
86
86
  import { useLocale } from 'fimo/ui';
87
87
 
88
- const { locale, defaultLocale, routePath } = useLocale();
88
+ const { locale, defaultLocale, locales, routePath, dir } = useLocale();
89
+ ```
90
+
91
+ `locales` lists every configured locale, so a language switcher needs no API call and no extra component:
92
+
93
+ ```tsx
94
+ const { locale, locales, routePath } = useLocale();
95
+
96
+ locales.map((code) => (
97
+ <FimoLink key={code} to={routePath} locale={code} aria-current={code === locale ? 'true' : undefined}>
98
+ {new Intl.DisplayNames([code], { type: 'language' }).of(code)}
99
+ </FimoLink>
100
+ ));
89
101
  ```
90
102
 
91
103
  ## Custom Frameworks
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "bundled": true,
3
3
  "bundler": "esbuild",
4
- "bundledAt": "2026-07-06T17:55:19.533Z",
4
+ "bundledAt": "2026-07-06T18:53:21.864Z",
5
5
  "cliVersion": "0.3.3",
6
6
  "external": [
7
7
  "oxc-parser",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fimo",
3
- "version": "0.3.3-staging.23",
3
+ "version": "0.3.3-staging.24",
4
4
  "description": "Fimo CLI - create, deploy, and manage Fimo projects",
5
5
  "bin": {
6
6
  "fimo": "dist/cli/index.js"
@@ -21,7 +21,7 @@
21
21
  "cmdk": "^1.1.1",
22
22
  "date-fns": "^4.1.0",
23
23
  "embla-carousel-react": "^8.6.0",
24
- "fimo": "0.3.3-staging.23",
24
+ "fimo": "0.3.3-staging.24",
25
25
  "input-otp": "^1.4.2",
26
26
  "isbot": "^5",
27
27
  "lucide-react": "^0.577.0",