@lwrjs/label-module-provider 0.11.0-alpha.14 → 0.11.0-alpha.15

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.
@@ -36,12 +36,12 @@ var DEFAULT_DIR = [
36
36
  }
37
37
  ];
38
38
  var LabelModuleProvider = class {
39
- constructor({provideDefault = false, labelDirs = DEFAULT_DIR}, {config, runtimeEnvironment: {defaultLocale, lwrVersion}}) {
39
+ constructor({provideDefault = false, labelDirs = DEFAULT_DIR}, {config, runtimeEnvironment: {lwrVersion}}) {
40
40
  this.name = "label-module-provider";
41
41
  this.labelDirs = [];
42
42
  this.labelJsonCache = new Map();
43
43
  this.version = lwrVersion;
44
- this.defaultLocale = defaultLocale;
44
+ this.defaultLocale = config.i18n.defaultLocale;
45
45
  this.provideDefault = provideDefault;
46
46
  this.i18n = config.i18n;
47
47
  this.useI18nFallbacks = !!this.i18n.locales.find((f) => f.fallback);
@@ -9,7 +9,7 @@ export default class LabelModuleProvider implements ModuleProvider {
9
9
  i18n: I18NConfig;
10
10
  useI18nFallbacks: boolean;
11
11
  private labelJsonCache;
12
- constructor({ provideDefault, labelDirs }: LabelProviderOptions, { config, runtimeEnvironment: { defaultLocale, lwrVersion } }: ProviderContext);
12
+ constructor({ provideDefault, labelDirs }: LabelProviderOptions, { config, runtimeEnvironment: { lwrVersion } }: ProviderContext);
13
13
  private getLabelInfo;
14
14
  private getLabelInfoForLocale;
15
15
  getModuleEntry({ specifier }: AbstractModuleId, runtimeParams?: RuntimeParams): Promise<ModuleEntry | undefined>;
package/build/es/index.js CHANGED
@@ -8,12 +8,12 @@ const DEFAULT_DIR = [
8
8
  },
9
9
  ];
10
10
  export default class LabelModuleProvider {
11
- constructor({ provideDefault = false, labelDirs = DEFAULT_DIR }, { config, runtimeEnvironment: { defaultLocale, lwrVersion } }) {
11
+ constructor({ provideDefault = false, labelDirs = DEFAULT_DIR }, { config, runtimeEnvironment: { lwrVersion } }) {
12
12
  this.name = 'label-module-provider';
13
13
  this.labelDirs = [];
14
14
  this.labelJsonCache = new Map(); // TODO: file watcher
15
15
  this.version = lwrVersion;
16
- this.defaultLocale = defaultLocale;
16
+ this.defaultLocale = config.i18n.defaultLocale;
17
17
  this.provideDefault = provideDefault;
18
18
  this.i18n = config.i18n;
19
19
  this.useI18nFallbacks = !!this.i18n.locales.find((f) => f.fallback);
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "0.11.0-alpha.14",
7
+ "version": "0.11.0-alpha.15",
8
8
  "homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
9
9
  "repository": {
10
10
  "type": "git",
@@ -30,15 +30,15 @@
30
30
  "build/**/*.d.ts"
31
31
  ],
32
32
  "dependencies": {
33
- "@lwrjs/diagnostics": "0.11.0-alpha.14",
34
- "@lwrjs/shared-utils": "0.11.0-alpha.14",
33
+ "@lwrjs/diagnostics": "0.11.0-alpha.15",
34
+ "@lwrjs/shared-utils": "0.11.0-alpha.15",
35
35
  "ajv": "6.12.6"
36
36
  },
37
37
  "devDependencies": {
38
- "@lwrjs/types": "0.11.0-alpha.14"
38
+ "@lwrjs/types": "0.11.0-alpha.15"
39
39
  },
40
40
  "engines": {
41
41
  "node": ">=16.0.0"
42
42
  },
43
- "gitHead": "d082cc49d9e2b5024d17a3da2c5c2bf585f811fe"
43
+ "gitHead": "3c6c6d17b2f57a5b67d32e40a1e574abb7d9afea"
44
44
  }