Skip to content

Per-user dashboard language (backend for the dashboard translation) - #2585

Open
andrewsbejatto wants to merge 1 commit into
amidaware:developfrom
andrewsbejatto:feature/user-language
Open

andrewsbejatto wants to merge 1 commit into
amidaware:developfrom
andrewsbejatto:feature/user-language

Conversation

@andrewsbejatto

@andrewsbejatto andrewsbejatto commented Nov 11, 2026 •

Copy link
Copy Markdown

Summary

Backend part of translating the web dashboard (vue-i18n, English + Brazilian Portuguese). See the companion PR in tacticalrmm-web: WEBPR

  • User.language: "" (automatic = browser language), "en-US", "pt-BR". Migration 0045_user_language (plain AddField, default "", so nothing changes for existing users).
  • Editable through the existing user UI preferences endpoint (PATCH /accounts/users/ui/). Values outside the choices are rejected.
  • Returned by /core/dashinfo/ so the dashboard applies the user's language after login.

New languages only need a choice here and a locale folder in the web repo.

Testing

  • accounts.tests.TestUserAction.test_user_ui: set pt-BR, back to automatic, invalid value returns 400.
  • core.tests.TestCoreTasks.test_dashboard_info: language in dashinfo.
  • makemigrations --check, black --check, flake8.

🤖 Generated with Claude Code

Adds User.language ("" = automatic/browser language, "en-US", "pt-BR"),
editable through the user UI preferences endpoint (/accounts/users/ui/)
and returned by /core/dashinfo/, so the web dashboard can load the
user's language after login.

Backend part of the dashboard translation (tacticalrmm-web: vue-i18n with
English and Brazilian Portuguese).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@CLAassistant

CLAassistant commented Nov 11, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants