           return label if typeof label is 'string'
 
           # otherwise label is a translation dict
-          if label[@currentLanguage]
+          if label[@current_language]
             # has translation so return translated label
-            return label[@currentLanguage]
+            return label[@current_language]
           else
             # has translations, but not the desired one so return first value.
             # for example:

        first_key: (dict) ->
          _.keys(dict)[0]

        set_current_language: ->
          first_field = document.flat_fields[0]

          if first_field.type is 'group'
            if typeof first_field.children[0].label is 'object'
              return @first_key(first_field.children[0].label)
            else
              return first_field.children[0].label

          if first_field.type isnt 'group' and first_field.label?
            if typeof first_field.label is 'object'
              return @first_key(first_field.label)
            else
              # doesn't have translations

        # languages:  []

        language_select: ( event ) ->
          @modalView = new LanguageSelectModal( { current: @current_language, view: this } )
          $('.modal').html( @modalView.render().el )
          @modalView.onAfterRender( $( '.modal' ) )
          @
