Skip to content

Conversation

@Sanchit2662
Copy link

Fixes #1021

Title: Fix Translation Locale Inconsistencies: Migrate to Consistent profiles Naming Convention

Description:

This PR fixes the issue where different locale files were using different naming styles for profile-related translations (like PROFILE, PROFILES, and profiles). Because of this, some translations weren’t loading properly and a few components were throwing i18n errors.

To fix everything, I moved all profile-related translations into one consistent section called “profiles” (lowercase) across all languages. I also added a few missing keys (yourPassword, back, deleteForever, superAdmin) so every locale now has full coverage.

Changes made:

• Updated all locale files by renaming PROFILE/PROFILES to profiles
• Added the missing translations mentioned above
• Updated Vue components so they now point to the correct lowercase keys
• Made sure all 10 languages (EN, DE, FR, HI, JA, PT_BR, RU, ZH, AR, ES) have the same structure

Why this fix was needed:

• Some parts of the app were showing fallback text or missing translations
• Components like Profile and Account Delete flow were throwing i18n warnings
• The codebase was inconsistent and harder to maintain because of mixed naming conventions
• Using one clear lowercase structure makes everything cleaner and prevents future issues

Testing:

I tested the Profile screens in all languages and everything loads correctly now.
Account deletion shows the right text, the super admin panel doesn’t throw translation errors anymore, and there are no missing-key warnings in the console.
All JSON files also validate properly.

Changes Summary:

Modified: All locale JSON files to standardize “profiles” section
Modified: Components that referred to old keys
Added: yourPassword, back, deleteForever, superAdmin translations in all languages

@sonarqubecloud
Copy link

sonarqubecloud bot commented Dec 5, 2025

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.

[🐞 BUG]: currently the locales are not consistent ( duplicate sections : PROFILES and profiles )

1 participant