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 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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adapt-authoring-lang",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "Localisation for the Adapt authoring tool",
5
5
  "homepage": "https://github.com/taylortom/adapt-authoring-lang",
6
6
  "license": "GPL-3.0",