@sveltekit-i18n/parser-curly 3.0.0-next.3 → 3.0.0
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 +0 -9
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
[](https://badge.fury.io/js/@sveltekit-i18n%2Fparser-curly) [](https://github.com/sveltekit-i18n/parsers/actions/workflows/tests-parser-curly.yml)
|
|
2
|
-
[](https://app.netlify.com/sites/parser-default/deploys)
|
|
3
2
|
|
|
4
3
|
# @sveltekit-i18n/parser-curly
|
|
5
4
|
|
|
6
5
|
The [Curly Message Format](https://github.com/curly-message/spec) for [@sveltekit-i18n/base](https://github.com/sveltekit-i18n/base): placeholders, defaults, modifiers and comparisons written in double curly braces. Every message is resolved by [`@curly-message/parser`](https://github.com/curly-message/parsers), the format's reference implementation and this package's only dependency; the package itself unpacks the base library's calling convention and supplies a default diagnostics channel. This README is a practical guide to the syntax — the full grammar and the resolution rules are in the specification repository.
|
|
7
6
|
|
|
8
|
-
**[Live Demo](https://parser-default.netlify.app)** – See it in action
|
|
9
|
-
|
|
10
7
|
## Installation
|
|
11
8
|
|
|
12
9
|
```bash
|
|
@@ -412,12 +409,6 @@ Build the extractor from the same options `parser()` is built from: a custom mod
|
|
|
412
409
|
|
|
413
410
|
Only the text of a message is scanned. A translation leaf that is not text names no parameters rather than throwing, and a placeholder a payload value carries into a later interpolation pass is not one the message itself names.
|
|
414
411
|
|
|
415
|
-
## Examples
|
|
416
|
-
|
|
417
|
-
See the [parser-curly example](https://github.com/sveltekit-i18n/lib/tree/master/examples/parser-default) for a complete working application.
|
|
418
|
-
|
|
419
|
-
**[Live Demo](https://parser-default.netlify.app)** – Interactive examples
|
|
420
|
-
|
|
421
412
|
## Comparison with Other Parsers
|
|
422
413
|
|
|
423
414
|
### vs. ICU Message Format
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sveltekit-i18n/parser-curly",
|
|
3
|
-
"version": "3.0.0
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "Curly Message Format parser for the sveltekit-i18n library.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
},
|
|
48
48
|
"homepage": "https://github.com/sveltekit-i18n/parsers/tree/master/parser-curly#readme",
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"@sveltekit-i18n/base": "^3.0.0
|
|
50
|
+
"@sveltekit-i18n/base": "^3.0.0"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"@curly-message/parser": "^1.0.1"
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"@curly-message/conformance": "^1.0.1",
|
|
57
57
|
"@eslint/js": "^10.0.1",
|
|
58
58
|
"@stylistic/eslint-plugin": "^5.10.0",
|
|
59
|
-
"@sveltekit-i18n/base": "^3.0.0
|
|
59
|
+
"@sveltekit-i18n/base": "^3.0.0",
|
|
60
60
|
"eslint": "^10.8.1",
|
|
61
61
|
"eslint-plugin-import-x": "^4.17.1",
|
|
62
62
|
"globals": "^17.11.0",
|