diff --git a/static/js/editor.js b/static/js/editor.js index 871d35822..080026740 100644 --- a/static/js/editor.js +++ b/static/js/editor.js @@ -141,6 +141,11 @@ pandora.ui.editor = function(data) { result.data.date = Ox.formatDate( result.data.modified.slice(0, 10), '%B %e, %Y' ); + result.data.languages = ( + result.data.languages || [pandora.site.language] + ).map(function(language) { + return Ox.getLanguageNameByCode(language); + }); that.updateAnnotation(data.id, result.data); Ox.Request.clearCache(); };