Sha256: da6bb5a6492b413a370838b3a1498dd153d51e76bb5af357b23e34ad8419081a

Contents?: true

Size: 489 Bytes

Versions: 5

Compression:

Stored size: 489 Bytes

Contents

Ext.define('TM.helper.ApplicationHelper', {
  translateType: function(t) {
    var translations = {
      yearly: '年计划',
      quarterly: '季计划',
      monthly: '月计划',
      weekly: '周计划',
      daily: '日计划'
    };

    return translations[t];
  },

  translateStatus: function(s) {
    var translations = {
      new: '新建',
      in_process: '进行中',
      expired: '已过期',
      finished: '已完成'
    };

    return translations[s];
  }
});

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
task-manager-0.1.5 app/assets/javascripts/task-manager/extjs/app/helper/ApplicationHelper.js
task-manager-0.1.4 app/assets/javascripts/task-manager/extjs/app/helper/ApplicationHelper.js
task-manager-0.1.3 app/assets/javascripts/task-manager/extjs/app/helper/ApplicationHelper.js
task-manager-0.1.2 app/assets/javascripts/task-manager/extjs/app/helper/application_helper.js
task-manager-0.1.1 app/assets/javascripts/task-manager/extjs/app/helper/application_helper.js