translations.js 729 B

123456789101112131415161718192021
  1. /* eslint-disable
  2. max-len,
  3. no-return-assign,
  4. no-undef,
  5. */
  6. // TODO: This file was created by bulk-decaffeinate.
  7. // Fix any style issues and re-enable lint.
  8. /*
  9. * decaffeinate suggestions:
  10. * DS102: Remove unnecessary code created because of implicit returns
  11. * Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
  12. */
  13. define(['base'], App =>
  14. App.controller('TranslationsPopupController', function($scope, ipCookie) {
  15. $scope.hidei18nNotification = ipCookie('hidei18nNotification')
  16. return ($scope.dismiss = function() {
  17. ipCookie('hidei18nNotification', true, { expires: 180 })
  18. return ($scope.hidei18nNotification = ipCookie('hidei18nNotification'))
  19. })
  20. }))