intlayer 2.0.6 → 2.0.7
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/package.json +4 -5
- package/src/index.ts +0 -42
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "intlayer",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.7",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "IntLayer is a layer of abstraction between the business logic and the data access layer. Manage internationalization in a simple way, through TypeScript, JavaScript or JSON declaration file.",
|
|
6
6
|
"keywords": [
|
|
@@ -30,7 +30,6 @@
|
|
|
30
30
|
},
|
|
31
31
|
"./package.json": "./package.json"
|
|
32
32
|
},
|
|
33
|
-
"main": "src/index.ts",
|
|
34
33
|
"typesVersions": {
|
|
35
34
|
"*": {
|
|
36
35
|
"package.json": [
|
|
@@ -44,9 +43,9 @@
|
|
|
44
43
|
],
|
|
45
44
|
"dependencies": {
|
|
46
45
|
"webpack": "^5.92.1",
|
|
47
|
-
"@intlayer/config": "^2.0.
|
|
48
|
-
"@intlayer/core": "^2.0.
|
|
49
|
-
"intlayer": "^2.0.
|
|
46
|
+
"@intlayer/config": "^2.0.7",
|
|
47
|
+
"@intlayer/core": "^2.0.7",
|
|
48
|
+
"intlayer": "^2.0.7"
|
|
50
49
|
},
|
|
51
50
|
"devDependencies": {
|
|
52
51
|
"@changesets/changelog-github": "0.5.0",
|
package/src/index.ts
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import type { Locales } from '@intlayer/config/client';
|
|
2
|
-
import {
|
|
3
|
-
type TranslationContent,
|
|
4
|
-
t as tCore,
|
|
5
|
-
getTranslationContent as getTranslationContentCore,
|
|
6
|
-
type LanguageContent,
|
|
7
|
-
} from '@intlayer/core';
|
|
8
|
-
|
|
9
|
-
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
10
|
-
/* eslint-disable @typescript-eslint/no-empty-interface */
|
|
11
|
-
export interface IConfigLocales<Content> {
|
|
12
|
-
// This interface should be augmented in the consuming app
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
type ConfigLocales = keyof IConfigLocales<unknown>;
|
|
16
|
-
|
|
17
|
-
export type CustomizableLanguageContent<Content = string> =
|
|
18
|
-
ConfigLocales extends never
|
|
19
|
-
? LanguageContent<Content>
|
|
20
|
-
: IConfigLocales<Content>;
|
|
21
|
-
|
|
22
|
-
// Re-exporting the following functions from the core package: to use module augmentation
|
|
23
|
-
export const t: <Content = string>(
|
|
24
|
-
content?: CustomizableLanguageContent<Content>
|
|
25
|
-
) => TranslationContent<Content> = tCore;
|
|
26
|
-
export const getTranslationContent: <Content = string>(
|
|
27
|
-
languageContent: CustomizableLanguageContent<Content>,
|
|
28
|
-
locale: Locales
|
|
29
|
-
) => Content = getTranslationContentCore;
|
|
30
|
-
|
|
31
|
-
export type {
|
|
32
|
-
LanguageContent,
|
|
33
|
-
QuantityContent,
|
|
34
|
-
ContentValue,
|
|
35
|
-
DeclarationContent,
|
|
36
|
-
} from '@intlayer/core';
|
|
37
|
-
export { getLocaleName, enu, getEnumerationContent } from '@intlayer/core';
|
|
38
|
-
export type {
|
|
39
|
-
LocalesValues,
|
|
40
|
-
CustomIntlayerConfig as IntlayerConfig,
|
|
41
|
-
} from '@intlayer/config/client';
|
|
42
|
-
export { Locales } from '@intlayer/config/client';
|