@intlayer/core 4.0.4 → 4.0.5
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/esm/getLocaleName.mjs +13 -13
- package/dist/esm/getLocalizedUrl.mjs +1 -1
- package/dist/esm/getMultilingualUrls.mjs +2 -2
- package/dist/esm/getPathWithoutLocale.mjs +1 -1
- package/dist/esm/index.mjs +11 -11
- package/dist/esm/transpiler/content_transformers/enumeration/enumeration.mjs +1 -1
- package/dist/esm/transpiler/content_transformers/enumeration/getEnumerationContent.mjs +1 -1
- package/dist/esm/transpiler/content_transformers/enumeration/index.mjs +3 -3
- package/dist/esm/transpiler/content_transformers/index.mjs +2 -2
- package/dist/esm/transpiler/content_transformers/translation/index.mjs +3 -3
- package/dist/esm/transpiler/content_transformers/translation/translation.mjs +1 -1
- package/dist/esm/transpiler/index.mjs +1 -1
- package/dist/esm/types/index.mjs +1 -1
- package/package.json +5 -5
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { Locales } from "@intlayer/config/client";
|
|
2
|
-
import { arabicLocales } from
|
|
3
|
-
import { germanLocales } from
|
|
4
|
-
import { englishLocales } from
|
|
5
|
-
import { spanishLocales } from
|
|
6
|
-
import { frenchLocales } from
|
|
7
|
-
import { hindiLocales } from
|
|
8
|
-
import { italianLocales } from
|
|
9
|
-
import { japaneseLocales } from
|
|
10
|
-
import { koreanLocales } from
|
|
11
|
-
import { ownLocalesName } from
|
|
12
|
-
import { portugueseLocales } from
|
|
13
|
-
import { russianLocales } from
|
|
14
|
-
import { chineseLocales } from
|
|
2
|
+
import { arabicLocales } from "./localeNames/ar.mjs";
|
|
3
|
+
import { germanLocales } from "./localeNames/du.mjs";
|
|
4
|
+
import { englishLocales } from "./localeNames/en.mjs";
|
|
5
|
+
import { spanishLocales } from "./localeNames/es.mjs";
|
|
6
|
+
import { frenchLocales } from "./localeNames/fr.mjs";
|
|
7
|
+
import { hindiLocales } from "./localeNames/hi.mjs";
|
|
8
|
+
import { italianLocales } from "./localeNames/it.mjs";
|
|
9
|
+
import { japaneseLocales } from "./localeNames/ja.mjs";
|
|
10
|
+
import { koreanLocales } from "./localeNames/ko.mjs";
|
|
11
|
+
import { ownLocalesName } from "./localeNames/ownLocalesName.mjs";
|
|
12
|
+
import { portugueseLocales } from "./localeNames/pt.mjs";
|
|
13
|
+
import { russianLocales } from "./localeNames/ru.mjs";
|
|
14
|
+
import { chineseLocales } from "./localeNames/zh.mjs";
|
|
15
15
|
const localeNameTranslations = {
|
|
16
16
|
[Locales.ENGLISH]: englishLocales,
|
|
17
17
|
[Locales.ENGLISH_AUSTRALIA]: englishLocales,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getConfiguration } from "@intlayer/config/client";
|
|
2
|
-
import { getMultilingualUrls } from
|
|
2
|
+
import { getMultilingualUrls } from "./getMultilingualUrls.mjs";
|
|
3
3
|
const { internationalization, middleware } = getConfiguration();
|
|
4
4
|
const { locales: localesDefault, defaultLocale: defaultLocaleDefault } = internationalization;
|
|
5
5
|
const { prefixDefault: prefixDefaultDefault } = middleware;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getConfiguration } from "@intlayer/config/client";
|
|
2
|
-
import { checkIsURLAbsolute } from
|
|
3
|
-
import { getPathWithoutLocale } from
|
|
2
|
+
import { checkIsURLAbsolute } from "./checkIsURLAbsolute.mjs";
|
|
3
|
+
import { getPathWithoutLocale } from "./getPathWithoutLocale.mjs";
|
|
4
4
|
const { internationalization, middleware } = getConfiguration();
|
|
5
5
|
const { locales: localesDefault, defaultLocale: defaultLocaleDefault } = internationalization;
|
|
6
6
|
const { prefixDefault: prefixDefaultDefault } = middleware;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getConfiguration } from "@intlayer/config/client";
|
|
2
|
-
import { checkIsURLAbsolute } from
|
|
2
|
+
import { checkIsURLAbsolute } from "./checkIsURLAbsolute.mjs";
|
|
3
3
|
const { internationalization } = getConfiguration();
|
|
4
4
|
const { locales: localesDefault } = internationalization;
|
|
5
5
|
const getPathWithoutLocale = (inputUrl, locales = localesDefault) => {
|
package/dist/esm/index.mjs
CHANGED
|
@@ -4,17 +4,17 @@ import {
|
|
|
4
4
|
getTranslationContent,
|
|
5
5
|
findMatchingCondition,
|
|
6
6
|
getEnumerationContent
|
|
7
|
-
} from
|
|
8
|
-
import { NodeType } from
|
|
9
|
-
import { getLocaleName } from
|
|
10
|
-
import { getHTMLTextDir } from
|
|
11
|
-
import { getLocaleLang } from
|
|
12
|
-
import { localeList } from
|
|
13
|
-
import { isSameKeyPath } from
|
|
14
|
-
import { localeDetector } from
|
|
15
|
-
import { getPathWithoutLocale } from
|
|
16
|
-
import { getMultilingualUrls } from
|
|
17
|
-
import { getLocalizedUrl } from
|
|
7
|
+
} from "./transpiler/content_transformers/index.mjs";
|
|
8
|
+
import { NodeType } from "./types/index.mjs";
|
|
9
|
+
import { getLocaleName } from "./getLocaleName.mjs";
|
|
10
|
+
import { getHTMLTextDir } from "./getHTMLTextDir.mjs";
|
|
11
|
+
import { getLocaleLang } from "./getLocaleLang.mjs";
|
|
12
|
+
import { localeList } from "./localeList.mjs";
|
|
13
|
+
import { isSameKeyPath } from "./utils/isSameKeyPath.mjs";
|
|
14
|
+
import { localeDetector } from "./localeDetector.mjs";
|
|
15
|
+
import { getPathWithoutLocale } from "./getPathWithoutLocale.mjs";
|
|
16
|
+
import { getMultilingualUrls } from "./getMultilingualUrls.mjs";
|
|
17
|
+
import { getLocalizedUrl } from "./getLocalizedUrl.mjs";
|
|
18
18
|
export {
|
|
19
19
|
NodeType,
|
|
20
20
|
enu,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { findMatchingCondition } from
|
|
1
|
+
import { findMatchingCondition } from "../../index.mjs";
|
|
2
2
|
const getEnumerationContent = (enumerationContent, quantity) => {
|
|
3
3
|
const key = findMatchingCondition(enumerationContent, quantity);
|
|
4
4
|
return enumerationContent[key];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
1
|
+
export * from "./enumeration.mjs";
|
|
2
|
+
export * from "./getEnumerationContent.mjs";
|
|
3
|
+
export * from "./findMatchingCondition.mjs";
|
|
4
4
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
1
|
+
export * from "./translation/index.mjs";
|
|
2
|
+
export * from "./enumeration/index.mjs";
|
|
3
3
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
1
|
+
export * from "./translation.mjs";
|
|
2
|
+
export * from "./getTranslationContent.mjs";
|
|
3
|
+
export * from "./types.mjs";
|
|
4
4
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "./content_transformers/index.mjs";
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
package/dist/esm/types/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intlayer/core",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.5",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Includes core Intlayer functions like translation, dictionary, and utility functions shared across multiple packages.",
|
|
6
6
|
"keywords": [
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"dependencies": {
|
|
61
61
|
"@formatjs/intl-localematcher": "^0.5.10",
|
|
62
62
|
"negotiator": "^1.0.0",
|
|
63
|
-
"@intlayer/config": "4.0.
|
|
63
|
+
"@intlayer/config": "4.0.5"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
66
|
"@types/negotiator": "^0.6.3",
|
|
@@ -76,12 +76,12 @@
|
|
|
76
76
|
"typescript": "^5.7.3",
|
|
77
77
|
"@utils/eslint-config": "1.0.4",
|
|
78
78
|
"@utils/ts-config-types": "1.0.4",
|
|
79
|
-
"@utils/
|
|
80
|
-
"@utils/
|
|
79
|
+
"@utils/tsup-config": "1.0.4",
|
|
80
|
+
"@utils/ts-config": "1.0.4"
|
|
81
81
|
},
|
|
82
82
|
"peerDependencies": {
|
|
83
83
|
"react": ">=16.0.0",
|
|
84
|
-
"@intlayer/config": "4.0.
|
|
84
|
+
"@intlayer/config": "4.0.5"
|
|
85
85
|
},
|
|
86
86
|
"engines": {
|
|
87
87
|
"node": ">=14.18"
|