svelte-intlayer 9.0.2 → 9.1.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/dist/plugins.js +3 -2
- package/package.json +11 -11
package/dist/plugins.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { editor, internationalization } from '@intlayer/config/built';
|
|
2
|
-
import { conditionPlugin, enumerationPlugin, fallbackPlugin, filePlugin, genderPlugin, isInterpolableWrapperNode, nestedPlugin, pluralPlugin, transformInterpolableNode, translationPlugin, } from '@intlayer/core/interpreter';
|
|
2
|
+
import { conditionPlugin, enumerationPlugin, fallbackPlugin, filePlugin, genderPlugin, isInterpolableWrapperNode, nestedPlugin, pluralPlugin, selectPlugin, transformInterpolableNode, translationPlugin, } from '@intlayer/core/interpreter';
|
|
3
3
|
import * as NodeTypes from '@intlayer/types/nodeType';
|
|
4
4
|
import { reportExposure } from './analytics/exposureSink';
|
|
5
5
|
import { default as ContentSelector } from './editor/ContentSelector.svelte';
|
|
@@ -134,7 +134,7 @@ const splitAndJoinInsertion = (template, values) => {
|
|
|
134
134
|
parts.push(template.substring(lastIndex, match.index));
|
|
135
135
|
}
|
|
136
136
|
// Add the replaced value
|
|
137
|
-
const key = match[1]
|
|
137
|
+
const key = match[1]?.trim();
|
|
138
138
|
const value = values[key];
|
|
139
139
|
if (value !== undefined && value !== null) {
|
|
140
140
|
parts.push(value);
|
|
@@ -347,6 +347,7 @@ export const getPlugins = (locale, fallback = true) => {
|
|
|
347
347
|
nestedPlugin(locale ?? internationalization.defaultLocale),
|
|
348
348
|
filePlugin,
|
|
349
349
|
genderPlugin,
|
|
350
|
+
selectPlugin,
|
|
350
351
|
intlayerNodePlugins,
|
|
351
352
|
svelteNodePlugins,
|
|
352
353
|
insertionPlugin,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "svelte-intlayer",
|
|
3
|
-
"version": "9.0
|
|
3
|
+
"version": "9.1.0",
|
|
4
4
|
"description": "Easily internationalize i18n your Svelte applications with type-safe multilingual content management.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"intlayer",
|
|
@@ -82,33 +82,33 @@
|
|
|
82
82
|
"typecheck": "tsc --noEmit --project tsconfig.types.json"
|
|
83
83
|
},
|
|
84
84
|
"dependencies": {
|
|
85
|
-
"@intlayer/api": "9.0
|
|
86
|
-
"@intlayer/config": "9.0
|
|
87
|
-
"@intlayer/core": "9.0
|
|
88
|
-
"@intlayer/editor": "9.0
|
|
89
|
-
"@intlayer/types": "9.0
|
|
85
|
+
"@intlayer/api": "9.1.0",
|
|
86
|
+
"@intlayer/config": "9.1.0",
|
|
87
|
+
"@intlayer/core": "9.1.0",
|
|
88
|
+
"@intlayer/editor": "9.1.0",
|
|
89
|
+
"@intlayer/types": "9.1.0"
|
|
90
90
|
},
|
|
91
91
|
"devDependencies": {
|
|
92
92
|
"@sveltejs/adapter-auto": "7.0.1",
|
|
93
93
|
"@sveltejs/package": "2.5.8",
|
|
94
94
|
"@sveltejs/vite-plugin-svelte": "7.2.0",
|
|
95
|
-
"@types/node": "26.1.
|
|
95
|
+
"@types/node": "26.1.2",
|
|
96
96
|
"@utils/ts-config": "1.0.4",
|
|
97
97
|
"@utils/ts-config-types": "1.0.4",
|
|
98
98
|
"@utils/tsdown-config": "1.0.4",
|
|
99
99
|
"rimraf": "6.1.3",
|
|
100
|
-
"svelte": "5.56.
|
|
101
|
-
"svelte-check": "4.7.
|
|
100
|
+
"svelte": "5.56.8",
|
|
101
|
+
"svelte-check": "4.7.4",
|
|
102
102
|
"tsdown": "0.22.14",
|
|
103
103
|
"typescript": "5.9.3",
|
|
104
|
-
"vite": "8.
|
|
104
|
+
"vite": "8.2.0",
|
|
105
105
|
"vitest": "4.1.10"
|
|
106
106
|
},
|
|
107
107
|
"peerDependencies": {
|
|
108
108
|
"svelte": ">=5.0.0"
|
|
109
109
|
},
|
|
110
110
|
"optionalDependencies": {
|
|
111
|
-
"@intlayer/analytics": "9.0
|
|
111
|
+
"@intlayer/analytics": "9.1.0"
|
|
112
112
|
},
|
|
113
113
|
"engines": {
|
|
114
114
|
"node": ">=14.18"
|