@i18n-micro/astro 1.3.3 → 1.3.4
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/dist/client/index.d.cts +6 -0
- package/dist/components/index.d.cts +0 -0
- package/dist/index.d.cts +14 -0
- package/package.json +44 -11
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export type { I18nState } from './core';
|
|
2
|
+
export { hasTranslation, translate } from './core';
|
|
3
|
+
export { I18nProvider as I18nProviderPreact, useAstroI18n as useAstroI18nPreact } from './preact';
|
|
4
|
+
export { I18nProvider, useAstroI18n as useAstroI18nReact } from './react';
|
|
5
|
+
export { createI18nStore, useAstroI18n as useAstroI18nSvelte } from './svelte';
|
|
6
|
+
export { provideI18n, useAstroI18n as useAstroI18nVue } from './vue';
|
|
File without changes
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export { defaultPlural, FormatService, interpolate } from '@i18n-micro/core';
|
|
2
|
+
export type { CleanTranslation, Getter, Locale, LocaleCode, Params, PluralFunc, Translations, } from '@i18n-micro/types';
|
|
3
|
+
export { AstroI18n, type AstroI18nOptions } from './composer';
|
|
4
|
+
export type { I18nIntegrationOptions } from './integration';
|
|
5
|
+
export { createI18n, i18nIntegration } from './integration';
|
|
6
|
+
export type { LoadedTranslations, LoadTranslationsOptions } from './load-translations';
|
|
7
|
+
export { loadTranslationsFromDir, loadTranslationsIntoI18n, } from './load-translations';
|
|
8
|
+
export type { I18nMiddlewareOptions } from './middleware';
|
|
9
|
+
export { createI18nMiddleware, detectLocale } from './middleware';
|
|
10
|
+
export { createAstroRouterAdapter } from './router/adapter';
|
|
11
|
+
export type { I18nRoutingStrategy } from './router/types';
|
|
12
|
+
export { getLocaleFromPath, getRouteName, localizePath, removeLocaleFromPath, switchLocalePath, } from './routing';
|
|
13
|
+
export type { I18nClientProps, LocaleHeadOptions, LocaleHeadResult } from './utils';
|
|
14
|
+
export { getDefaultLocale, getI18n, getI18nProps, getLocale, getLocales, useI18n, useLocaleHead, } from './utils';
|
package/package.json
CHANGED
|
@@ -1,15 +1,35 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@i18n-micro/astro",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.4",
|
|
4
|
+
"description": "Astro integration for i18n-micro — translations, routing, and islands.",
|
|
4
5
|
"type": "module",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"sideEffects": false,
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/s00d/nuxt-i18n-micro.git",
|
|
11
|
+
"directory": "packages/astro"
|
|
12
|
+
},
|
|
13
|
+
"homepage": "https://github.com/s00d/nuxt-i18n-micro/tree/main/packages/astro#readme",
|
|
14
|
+
"bugs": {
|
|
15
|
+
"url": "https://github.com/s00d/nuxt-i18n-micro/issues"
|
|
16
|
+
},
|
|
17
|
+
"engines": {
|
|
18
|
+
"node": ">=18"
|
|
19
|
+
},
|
|
5
20
|
"main": "./dist/index.cjs",
|
|
6
|
-
"module": "./dist/index.mjs",
|
|
7
21
|
"types": "./dist/index.d.ts",
|
|
8
22
|
"exports": {
|
|
9
23
|
".": {
|
|
10
|
-
"
|
|
11
|
-
|
|
12
|
-
|
|
24
|
+
"import": {
|
|
25
|
+
"types": "./dist/index.d.ts",
|
|
26
|
+
"default": "./dist/index.mjs"
|
|
27
|
+
},
|
|
28
|
+
"require": {
|
|
29
|
+
"types": "./dist/index.d.cts",
|
|
30
|
+
"default": "./dist/index.cjs"
|
|
31
|
+
},
|
|
32
|
+
"default": "./dist/index.mjs"
|
|
13
33
|
},
|
|
14
34
|
"./env": {
|
|
15
35
|
"types": "./dist/env.d.ts"
|
|
@@ -41,19 +61,28 @@
|
|
|
41
61
|
"./client/svelte": {
|
|
42
62
|
"types": "./dist/client/svelte.d.ts",
|
|
43
63
|
"import": "./dist/client/svelte.js"
|
|
44
|
-
}
|
|
64
|
+
},
|
|
65
|
+
"./package.json": "./package.json"
|
|
45
66
|
},
|
|
46
67
|
"files": [
|
|
47
68
|
"dist",
|
|
48
|
-
"src"
|
|
69
|
+
"src",
|
|
70
|
+
"README.md",
|
|
71
|
+
"LICENSE"
|
|
49
72
|
],
|
|
50
73
|
"publishConfig": {
|
|
51
74
|
"access": "public"
|
|
52
75
|
},
|
|
76
|
+
"keywords": [
|
|
77
|
+
"astro",
|
|
78
|
+
"i18n",
|
|
79
|
+
"internationalization",
|
|
80
|
+
"translations"
|
|
81
|
+
],
|
|
53
82
|
"dependencies": {
|
|
54
|
-
"@i18n-micro/core": "1.3.
|
|
55
|
-
"@i18n-micro/
|
|
56
|
-
"@i18n-micro/
|
|
83
|
+
"@i18n-micro/core": "1.3.1",
|
|
84
|
+
"@i18n-micro/node": "1.2.1",
|
|
85
|
+
"@i18n-micro/types": "1.2.2"
|
|
57
86
|
},
|
|
58
87
|
"peerDependencies": {
|
|
59
88
|
"astro": "^5.16.5",
|
|
@@ -86,12 +115,16 @@
|
|
|
86
115
|
"svelte": "^4.0.0 || ^5.0.0",
|
|
87
116
|
"vue": "^3.5.25",
|
|
88
117
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
89
|
-
"preact": "^10.0.0"
|
|
118
|
+
"preact": "^10.0.0",
|
|
119
|
+
"publint": "^0.3.17",
|
|
120
|
+
"vitest": "^3.2.4"
|
|
90
121
|
},
|
|
91
122
|
"scripts": {
|
|
92
123
|
"build": "vite build",
|
|
124
|
+
"check:package": "publint",
|
|
93
125
|
"dev": "cd playground && astro dev",
|
|
94
126
|
"test": "jest",
|
|
127
|
+
"test:dist": "vitest run --config vitest.dist.config.ts",
|
|
95
128
|
"typecheck": "tsc --noEmit"
|
|
96
129
|
}
|
|
97
130
|
}
|