inlang-plugin-rich-icu 0.1.1 → 0.1.3
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 +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -27,14 +27,14 @@ as a dependency. Add it to your `project.inlang/settings.json`:
|
|
|
27
27
|
Catalogs are JSON maps of `key → ICU string`, one file per locale:
|
|
28
28
|
|
|
29
29
|
```json
|
|
30
|
-
{ "
|
|
30
|
+
{ "messageCount": "{count, plural, one {Vous avez <strong># nouveau message</strong>.} other {Vous avez <strong># nouveaux messages</strong>.}}" }
|
|
31
31
|
```
|
|
32
32
|
|
|
33
33
|
## Render (Paraglide + React)
|
|
34
34
|
|
|
35
35
|
```tsx
|
|
36
36
|
<ParaglideMessage
|
|
37
|
-
message={m.
|
|
37
|
+
message={m.messageCount}
|
|
38
38
|
inputs={{ count }}
|
|
39
39
|
markup={{ strong: ({ children }) => <strong>{children}</strong> }}
|
|
40
40
|
/>
|
package/package.json
CHANGED