i18n-tasks.yml 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. # i18n-tasks finds and manages missing and unused translations: https://github.com/glebm/i18n-tasks
  2. # The "main" locale.
  3. base_locale: en
  4. data:
  5. read:
  6. - config/locales/%{locale}.yml
  7. - config/locales/**/*.%{locale}.yml
  8. write:
  9. - ['{devise, simple_form, doorkeeper}.*', 'config/locales/\1.%{locale}.yml']
  10. - config/locales/%{locale}.yml
  11. yaml:
  12. write:
  13. line_width: -1
  14. search:
  15. paths:
  16. - app/
  17. - config/navigation.rb
  18. relative_roots:
  19. - app/controllers
  20. - app/helpers
  21. - app/mailers
  22. - app/views
  23. exclude:
  24. - app/assets/images
  25. - app/assets/fonts
  26. - app/assets/videos
  27. ignore_missing:
  28. - 'activemodel.errors.*'
  29. - 'activerecord.attributes.*'
  30. - 'activerecord.errors.*'
  31. - '{pagination,doorkeeper}.*'
  32. - '{date,datetime,time,number}.*'
  33. - 'errors.messages.*'
  34. - 'activerecord.errors.models.doorkeeper/*'
  35. - 'sessions.{browsers,platforms}.*'
  36. - 'application_mailer.salutation'
  37. - 'errors.500'
  38. - 'auth.providers.*'
  39. ignore_unused:
  40. - 'activemodel.errors.*'
  41. - 'activerecord.attributes.*'
  42. - 'activerecord.errors.*'
  43. - '{devise,pagination,doorkeeper}.*'
  44. - '{date,datetime,time,number}.*'
  45. - 'simple_form.{yes,no,recommended,not_recommended,overridden}'
  46. - 'simple_form.{placeholders,hints,labels}.*'
  47. - 'simple_form.{error_notification,required}.:'
  48. - 'errors.messages.*'
  49. - 'activerecord.errors.models.doorkeeper/*'
  50. - 'errors.429'
  51. - 'admin.accounts.roles.*'
  52. - 'admin.action_logs.actions.*'
  53. - 'admin.reports.summary.action_preambles.*'
  54. - 'admin.reports.summary.actions.*'
  55. - 'admin_mailer.new_appeal.actions.*'
  56. - 'statuses.attached.*'
  57. - 'move_handler.carry_{mutes,blocks}_over_text'
  58. - 'admin_mailer.*.subject'
  59. - 'user_mailer.*.subject'
  60. - 'notification_mailer.*'
  61. - 'imports.overwrite_preambles.{following,blocking,muting,domain_blocking,bookmarks,lists}_html'
  62. - 'imports.preambles.{following,blocking,muting,domain_blocking,bookmarks,lists}_html'
  63. - 'mail_subscriptions.unsubscribe.emails.*'
  64. - 'preferences.other' # some locales are missing other keys, therefore leading i18n-tasks to detect `preferences` as plural and not finding use
  65. - 'edit_profile.other' # some locales are missing other keys, therefore leading i18n-tasks to detect `preferences` as plural and not finding use
  66. ignore_inconsistent_interpolations:
  67. - '*.one'