smartloc 2.0.4 → 2.0.6

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.
@@ -1,5 +1,5 @@
1
1
  import { ILocaleDef, LocLiteral, ILiteralLocalizer } from './interfaces';
2
- import React from 'react';
2
+ import type React from 'react';
3
3
  export declare class DefaultLocale implements ILocaleDef {
4
4
  readonly id: string;
5
5
  readonly literals: ILiteralLocalizer;
@@ -1,3 +1,4 @@
1
+ import type React from 'react';
1
2
  export type LocStr = InternalLocStr & React.ReactElement;
2
3
  export interface InternalLocStr {
3
4
  /**
package/core/locale.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { ILocaleDef, ILiteralLocalizer, LocLiteral, TranslationTarget } from './interfaces';
2
- import React from 'react';
2
+ import type React from 'react';
3
3
  export declare class Locale implements ILocaleDef {
4
4
  readonly id: string;
5
5
  localeDef: {
package/node/load.js CHANGED
@@ -9,7 +9,7 @@ const path_1 = __importDefault(require("path"));
9
9
  const fs_extra_1 = __importDefault(require("fs-extra"));
10
10
  const adapters_1 = require("../adapters");
11
11
  const locale_list_1 = require("../core/locale-list");
12
- const load_1 = require("src/core/load");
12
+ const load_1 = require("../core/load");
13
13
  /**
14
14
  * Loads all locales generated from CLI
15
15
  * @param dirPath The file directory where to look for translation
package/node/load.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"load.js","sourceRoot":"","sources":["../../src/node/load.ts"],"names":[],"mappings":";;;;;AAWA,wCAIC;AAQD,gCAQC;AA/BD,gDAAwB;AACxB,wDAA0B;AAC1B,0CAA6C;AAC7C,qDAAgD;AAChD,wCAA8C;AAE9C;;;;GAIG;AACI,KAAK,UAAU,cAAc,CAAC,OAAe,EAAE,KAAe;IACjE,KAAK,MAAM,CAAC,IAAI,MAAM,kBAAE,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;QACxC,MAAM,UAAU,CAAC,cAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CA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D,OAAO,IAAI,CAAC;AAChB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "smartloc",
3
- "version": "2.0.4",
3
+ "version": "2.0.6",
4
4
  "description": "A i18n toolset for nodejs apis leveraging tagged strings",
5
5
  "main": "index.js",
6
6
  "bin": {