mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 18:15:52 -05:00
17 lines
601 B
CoffeeScript
17 lines
601 B
CoffeeScript
|
I18NEditModelView = require './I18NEditModelView'
|
||
|
Achievement = require 'models/Achievement'
|
||
|
|
||
|
module.exports = class I18NEditAchievementView extends I18NEditModelView
|
||
|
id: "i18n-edit-component-view"
|
||
|
modelClass: Achievement
|
||
|
|
||
|
buildTranslationList: ->
|
||
|
lang = @selectedLanguage
|
||
|
|
||
|
# name, description
|
||
|
if i18n = @model.get('i18n')
|
||
|
if name = @model.get('name')
|
||
|
@wrapRow "Achievement name", ['name'], name, i18n[lang]?.name, []
|
||
|
if description = @model.get('description')
|
||
|
@wrapRow "Achievement description", ['description'], description, i18n[lang]?.description, []
|