@sveltekit-i18n/base 3.0.0-next.2 → 3.0.0-next.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 +5 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -40,7 +40,7 @@ You'll also need a parser:
|
|
|
40
40
|
|
|
41
41
|
```bash
|
|
42
42
|
# Choose one:
|
|
43
|
-
npm install @sveltekit-i18n/parser-
|
|
43
|
+
npm install @sveltekit-i18n/parser-curly
|
|
44
44
|
npm install @sveltekit-i18n/parser-icu
|
|
45
45
|
# or create your own
|
|
46
46
|
```
|
|
@@ -62,7 +62,7 @@ npm install @sveltekit-i18n/parser-icu
|
|
|
62
62
|
```javascript
|
|
63
63
|
// src/lib/translations/index.js
|
|
64
64
|
import { I18n } from '@sveltekit-i18n/base';
|
|
65
|
-
import parser from '@sveltekit-i18n/parser-
|
|
65
|
+
import parser from '@sveltekit-i18n/parser-curly';
|
|
66
66
|
|
|
67
67
|
/** @type {import('@sveltekit-i18n/base').Config.T} */
|
|
68
68
|
const config = {
|
|
@@ -356,7 +356,7 @@ Full API documentation: [docs/README.md](./docs/README.md)
|
|
|
356
356
|
|
|
357
357
|
```typescript
|
|
358
358
|
import { I18n, type Config } from '@sveltekit-i18n/base';
|
|
359
|
-
import parser from '@sveltekit-i18n/parser-
|
|
359
|
+
import parser from '@sveltekit-i18n/parser-curly';
|
|
360
360
|
|
|
361
361
|
// The parser's params – the rest parameters of `t`/`l`. Annotate only when the
|
|
362
362
|
// config lives on its own; `new I18n({ ... })` infers them.
|
|
@@ -381,8 +381,8 @@ The locales survive only when the config reaches the constructor as a literal
|
|
|
381
381
|
|
|
382
382
|
## Related Packages
|
|
383
383
|
|
|
384
|
-
- [sveltekit-i18n](https://github.com/sveltekit-i18n/lib) – Complete solution with
|
|
385
|
-
- [@sveltekit-i18n/parser-
|
|
384
|
+
- [sveltekit-i18n](https://github.com/sveltekit-i18n/lib) – Complete solution, with the Curly Message Format parser included
|
|
385
|
+
- [@sveltekit-i18n/parser-curly](https://github.com/sveltekit-i18n/parsers/tree/master/parser-curly) – [Curly Message Format](https://github.com/curly-message/spec) parser
|
|
386
386
|
- [@sveltekit-i18n/parser-icu](https://github.com/sveltekit-i18n/parsers/tree/master/parser-icu) – ICU message format parser
|
|
387
387
|
- [Extensions](https://github.com/sveltekit-i18n/extensions) – Official extensions for the `config.extensions` pipe
|
|
388
388
|
|
package/package.json
CHANGED