Repository navigation
Per-user dashboard language (backend for the dashboard translation) - #2585
Open
andrewsbejatto wants to merge 1 commit into
Open
andrewsbejatto wants to merge 1 commit into
andrewsbejatto wants to merge 1 commit into
Conversation
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>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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". Migration0045_user_language(plainAddField, default"", so nothing changes for existing users).PATCH /accounts/users/ui/). Values outside the choices are rejected./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: setpt-BR, back to automatic, invalid value returns 400.core.tests.TestCoreTasks.test_dashboard_info:languagein dashinfo.makemigrations --check,black --check,flake8.🤖 Generated with Claude Code