mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-26 12:50:31 -04:00
Handling empty context objects in i18n edit view.
This commit is contained in:
parent
81b4cfed15
commit
dc56a50b75
2 changed files with 2 additions and 2 deletions
app/views/i18n
|
@ -22,7 +22,7 @@ module.exports = class I18NEditComponentView extends I18NEditModelView
|
|||
@wrapRow "#{propDoc.name} description", ['description'], propDoc.description, i18n[lang]?.description, path, 'markdown'
|
||||
if context = propDoc.context
|
||||
for key, value of context
|
||||
@wrapRow "#{propDoc.name} context value", ['context', key], value, i18n[lang]?.context[key], path
|
||||
@wrapRow "#{propDoc.name} context value", ['context', key], value, i18n[lang]?.context?[key], path
|
||||
|
||||
#- Component return value descriptions
|
||||
if i18n = propDoc.returns?.i18n
|
||||
|
|
|
@ -57,4 +57,4 @@ module.exports = class I18NEditLevelView extends I18NEditModelView
|
|||
if (i18n = method.i18n) and (context = method.context)
|
||||
for key, value of context
|
||||
path = ['thangs', thangIndex, 'components', componentIndex, 'config', 'programmableMethods', methodName]
|
||||
@wrapRow 'Code comment', ['context', key], value, i18n[lang]?.context[key], path
|
||||
@wrapRow 'Code comment', ['context', key], value, i18n[lang]?.context?[key], path
|
||||
|
|
Loading…
Add table
Reference in a new issue