Skip to content

Commit

Permalink
Avoid JS errors if locale not supported by Transvision
Browse files Browse the repository at this point in the history
  • Loading branch information
mathjazz committed Mar 23, 2015
1 parent 668239e commit c367e75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pontoon/base/static/js/translate.js
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ var Pontoon = (function (my) {
}

}).success(function(data) {
if (data.translations) {
if (data.translations && !data.translations.error) {
$.each(data.translations, function() {
append({
original: this.source,
Expand Down

0 comments on commit c367e75

Please sign in to comment.