mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-23 23:58:02 -05:00
Added context to the i18n editor for components.
This commit is contained in:
parent
730288babf
commit
346f3b33bf
1 changed files with 4 additions and 1 deletions
|
@ -20,6 +20,9 @@ module.exports = class I18NEditComponentView extends I18NEditModelView
|
|||
@wrapRow "#{propDoc.name} description (#{progLang})", [progLang, 'description'], description, i18n[lang]?[progLang]?.description, path, 'markdown'
|
||||
else if _.isString propDoc.description
|
||||
@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
|
||||
|
||||
#- Component return value descriptions
|
||||
if i18n = propDoc.returns?.i18n
|
||||
|
@ -41,4 +44,4 @@ module.exports = class I18NEditComponentView extends I18NEditModelView
|
|||
@wrapRow "#{propDoc.name} arg description #{argDoc.name} (#{progLang})", [progLang, 'description'], description, i18n[lang]?[progLang]?.description, path, 'markdown'
|
||||
else if _.isString argDoc.description
|
||||
@wrapRow "#{propDoc.name} arg description #{argDoc.name}", ['description'], argDoc.description, i18n[lang]?.description, path, 'markdown'
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue