FIX: Don't store translated trust level names in anonymous cache (PR #13224)

Refactors TrustLevel and moves translations from server to client

Additional changes:

  • “staff” and “admin” wasn’t translatable in site settings
  • it replaces a concatenated string with a translation
  • uses translation for trust levels in users_by_trust_level report
  • adds a DB migration to rename keys of translation overrides affected by this commit

GitHub

This pull request has been mentioned on Discourse Meta. There might be relevant details there:

Nice, I like to see JS classes.

1 Like