Repository navigation
Dashboard translation with vue-i18n (English + Brazilian Portuguese) - #65
Open
andrewsbejatto wants to merge 1 commit into
Open
andrewsbejatto wants to merge 1 commit into
andrewsbejatto wants to merge 1 commit into
Conversation
- vue-i18n 9 (legacy: false, global injection), boot file src/boot/i18n.ts - messages in src/i18n/locales/<locale>/<namespace>.json, loaded with import.meta.globEager; en-US and pt-BR have the same keys (2424) - all UI strings of the dashboard, settings, agent tabs/modals, remote background, file browser, reporting and SSO screens go through $t / t() - language selector on the login page and in User Preferences; saved per user (User.language, "" = browser language) and applied from dashinfo - Quasar's own components follow the selected language (quasar/lang) Needs the backend change that adds User.language (tacticalrmm feature/user-language). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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
Translates the dashboard with vue-i18n and adds Brazilian Portuguese. Needs the backend PR amidaware/tacticalrmm#2585 (
User.language).legacy: false, global injection), boot filesrc/boot/i18n.ts.src/i18n/locales/<locale>/<namespace>.json(27 namespaces, loaded withimport.meta.globEager).en-USandpt-BRhave the same 2424 keys.$t/t(): dashboard, agent table/tabs/modals, remote background, file browser, checks, tasks, automation, alerts, clients, scripts, settings, reporting and SSO screens. The English texts are the same as before.quasar/lang).Adding a language = a folder with the JSON files + the choice in the backend.
Testing
npm run lint -- --max-warnings=0andquasar build.{placeholders}per key, every key used insrcexists, and all 4848 messages compile with the vue-i18n message compiler.npm run formatwas only applied to the files changed here.🤖 Generated with Claude Code