@obmor/lang
Advanced tools
Comparing version 0.10.1 to 0.11.0
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.keysets = exports.config = void 0; | ||
exports.convert = exports.keysets = exports.config = void 0; | ||
const tslib_1 = require("tslib"); | ||
const utils_1 = require("./utils"); | ||
Object.defineProperty(exports, "convert", { enumerable: true, get: function () { return utils_1.convert; } }); | ||
const account = tslib_1.__importStar(require("./account/index")); | ||
@@ -7,0 +8,0 @@ const emptyCard = tslib_1.__importStar(require("./emptyCard/index")); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.convert = void 0; | ||
exports.convert = exports.deepCopy = void 0; | ||
const langs = {}; | ||
const langList = ['ru', 'kk', 'en']; | ||
const deepCopy = (obj) => JSON.parse(JSON.stringify(obj)); | ||
exports.deepCopy = deepCopy; | ||
const convert = (obj, pathString = '') => { | ||
@@ -25,3 +26,3 @@ const entries = Object.entries(obj); | ||
if (i + 1 >= pathes.length) { | ||
path[p] = deepCopy(value); | ||
path[p] = (0, exports.deepCopy)(value); | ||
} | ||
@@ -28,0 +29,0 @@ else { |
@@ -0,2 +1,4 @@ | ||
import { convert } from './utils'; | ||
export * as config from './config/index'; | ||
export declare const keysets: object; | ||
export { convert }; |
@@ -11,1 +11,2 @@ import { convert } from './utils'; | ||
export const keysets = convert({ account, emptyCard, common, details, welcome, services, dialogs }); | ||
export { convert }; |
@@ -0,1 +1,2 @@ | ||
export declare const deepCopy: (obj: Object) => any; | ||
export declare const convert: (obj: Object, pathString?: string) => object; |
const langs = {}; | ||
const langList = ['ru', 'kk', 'en']; | ||
const deepCopy = (obj) => JSON.parse(JSON.stringify(obj)); | ||
export const deepCopy = (obj) => JSON.parse(JSON.stringify(obj)); | ||
export const convert = (obj, pathString = '') => { | ||
@@ -5,0 +5,0 @@ const entries = Object.entries(obj); |
{ | ||
"name": "@obmor/lang", | ||
"version": "0.10.1", | ||
"version": "0.11.0", | ||
"description": "Gravity UI base styling and components", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
44623
1080