@discord/intl 0.22.1 → 0.23.1

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.
@@ -97,7 +97,7 @@ class MessageLoader {
97
97
  }
98
98
  // If the message couldn't be found in either the requested nor the default locale, then
99
99
  // nothing can be done.
100
- const errorKey = this._debugKeyMap != null ? `"${this._debugKeyMap[key]}" (${key})` : undefined;
100
+ const errorKey = this._debugKeyMap != null ? `"${this._debugKeyMap[key]}" (${key})` : key;
101
101
  const requestedLocale = this._localeFileMap != null ? `${locale} (${this._localeFileMap[locale]})` : locale;
102
102
  const defaultLocale = this._localeFileMap != null
103
103
  ? `${this.defaultLocale} (${this._localeFileMap[this.defaultLocale]})`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@discord/intl",
3
- "version": "0.22.1",
3
+ "version": "0.23.1",
4
4
  "license": "MIT",
5
5
  "description": "Client runtime for managing messages and translations in a React project.",
6
6
  "main": "./dist/index.js",
@@ -23,7 +23,7 @@
23
23
  "@formatjs/intl": "^2.10.1",
24
24
  "@intrnl/xxhash64": "^0.1.2",
25
25
  "intl-messageformat": "^10.5.11",
26
- "@discord/intl-ast": "0.22.1"
26
+ "@discord/intl-ast": "0.23.1"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@formatjs/intl-durationformat": "^0.7.3",
@@ -195,7 +195,7 @@ export class MessageLoader {
195
195
 
196
196
  // If the message couldn't be found in either the requested nor the default locale, then
197
197
  // nothing can be done.
198
- const errorKey = this._debugKeyMap != null ? `"${this._debugKeyMap[key]}" (${key})` : undefined;
198
+ const errorKey = this._debugKeyMap != null ? `"${this._debugKeyMap[key]}" (${key})` : key;
199
199
  const requestedLocale =
200
200
  this._localeFileMap != null ? `${locale} (${this._localeFileMap[locale]})` : locale;
201
201
  const defaultLocale =