locon 0.0.2 → 0.0.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/dist/index.d.mts +1 -3
- package/dist/index.d.ts +1 -3
- package/dist/index.js +6 -2
- package/dist/index.mjs +2 -2
- package/package.json +3 -2
package/dist/index.d.mts
CHANGED
|
@@ -6,7 +6,6 @@ declare function L({ children }: Props): string;
|
|
|
6
6
|
declare function l(assetKey: string): string;
|
|
7
7
|
|
|
8
8
|
declare const _default: {
|
|
9
|
-
L: typeof L;
|
|
10
9
|
init: (options?: {}) => {
|
|
11
10
|
defaultLocale: string;
|
|
12
11
|
locales: {
|
|
@@ -14,7 +13,6 @@ declare const _default: {
|
|
|
14
13
|
};
|
|
15
14
|
autodetect: boolean;
|
|
16
15
|
};
|
|
17
|
-
l: typeof l;
|
|
18
16
|
};
|
|
19
17
|
|
|
20
|
-
export { _default as default };
|
|
18
|
+
export { L, _default as default, l };
|
package/dist/index.d.ts
CHANGED
|
@@ -6,7 +6,6 @@ declare function L({ children }: Props): string;
|
|
|
6
6
|
declare function l(assetKey: string): string;
|
|
7
7
|
|
|
8
8
|
declare const _default: {
|
|
9
|
-
L: typeof L;
|
|
10
9
|
init: (options?: {}) => {
|
|
11
10
|
defaultLocale: string;
|
|
12
11
|
locales: {
|
|
@@ -14,7 +13,6 @@ declare const _default: {
|
|
|
14
13
|
};
|
|
15
14
|
autodetect: boolean;
|
|
16
15
|
};
|
|
17
|
-
l: typeof l;
|
|
18
16
|
};
|
|
19
17
|
|
|
20
|
-
export { _default as default };
|
|
18
|
+
export { L, _default as default, l };
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
3
5
|
// src/functions/l.ts
|
|
4
6
|
function l(assetKey) {
|
|
5
7
|
return assetKey;
|
|
@@ -33,6 +35,8 @@ var init = (options = {}) => {
|
|
|
33
35
|
};
|
|
34
36
|
|
|
35
37
|
// src/index.ts
|
|
36
|
-
var src_default = {
|
|
38
|
+
var src_default = { init };
|
|
37
39
|
|
|
38
|
-
|
|
40
|
+
exports.L = L_default;
|
|
41
|
+
exports.default = src_default;
|
|
42
|
+
exports.l = l_default;
|
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "locon",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"description": "locon is a simple and lightweight library for React and React Native that provides a simple way to manage translations in your app.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
],
|
|
11
11
|
"scripts": {
|
|
12
12
|
"build": "tsup",
|
|
13
|
-
"test": "jest"
|
|
13
|
+
"test": "jest",
|
|
14
|
+
"publish": "npm publish"
|
|
14
15
|
},
|
|
15
16
|
"keywords": [
|
|
16
17
|
"i18n",
|