experimental-ciao-react 1.1.9 → 1.1.11
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.
- package/README.md +4 -4
- package/dist/index.cjs +439 -285
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +19 -13
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +19 -13
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +439 -286
- package/dist/index.js.map +1 -1
- package/package.json +3 -1
package/README.md
CHANGED
|
@@ -11,15 +11,15 @@ npm install @ciao-tools/react
|
|
|
11
11
|
## Usage
|
|
12
12
|
|
|
13
13
|
```tsx
|
|
14
|
-
import { useCt,
|
|
14
|
+
import { useCt, CiaoProvider, LanguageSwitcher } from "@ciao-tools/react";
|
|
15
15
|
import manifest from "./ciao-manifest.json";
|
|
16
16
|
|
|
17
17
|
function App() {
|
|
18
18
|
return (
|
|
19
|
-
<
|
|
19
|
+
<CiaoProvider manifest={manifest}>
|
|
20
20
|
<LanguageSwitcher />
|
|
21
21
|
<Content />
|
|
22
|
-
</
|
|
22
|
+
</CiaoProvider>
|
|
23
23
|
);
|
|
24
24
|
}
|
|
25
25
|
|
|
@@ -43,7 +43,7 @@ function Content() {
|
|
|
43
43
|
|
|
44
44
|
### Components
|
|
45
45
|
|
|
46
|
-
- `
|
|
46
|
+
- `CiaoProvider` - Translation provider with CDN loading
|
|
47
47
|
- `CTContextBlock` - Group related strings for context
|
|
48
48
|
- `Trans` - Translate JSX with nested elements
|
|
49
49
|
- `LanguageSwitcher` - Language selection UI
|