adapt-authoring-lang 1.0.7 → 1.0.8
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/lib/LangModule.js +1 -1
- package/package.json +1 -1
package/lib/LangModule.js
CHANGED
|
@@ -152,7 +152,7 @@ class LangModule extends AbstractModule {
|
|
|
152
152
|
if (key.constructor.name.endsWith('Error')) {
|
|
153
153
|
return this.translateError(lang, key)
|
|
154
154
|
}
|
|
155
|
-
const s = this.phrases[lang][key]
|
|
155
|
+
const s = this.phrases[lang]?.[key]
|
|
156
156
|
if (!s) {
|
|
157
157
|
this.log('warn', `missing key '${lang}.${key}'`)
|
|
158
158
|
return key
|