[Web][Backend] EN/TR i18n (consolidated): backend lang preference + error localization + full web translation sweep#583
Open
mustafa-5493 wants to merge 104 commits into
Open
[Web][Backend] EN/TR i18n (consolidated): backend lang preference + error localization + full web translation sweep#583mustafa-5493 wants to merge 104 commits into
mustafa-5493 wants to merge 104 commits into
Conversation
…Language service (#505)
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.
📝 Description
Full-stack EN/TR i18n, consolidated from 10 stacked PRs into one branch for unified review. Closes #291, #292, #505, #546, #548, #550, #553, #557, #560, #562, #564, #574.
Backend
Languageenum +preferredLanguagecolumn onRegisteredUser(default EN, V6 Flyway migration)PUT /api/users/{id}/profile/language; field exposed inUserProfileDTO(self-view only, same privacy gate as email)MessageSource+AcceptHeaderLocaleResolver; EN + TR message bundles for user-facing errorsWeb
i18next+react-i18next+ browser-language detectorLanguageSwitcher(EN/TR pill) in the navbar at every breakpoint; persists to backend on login, falls back to localStorage for guestsAccept-Languageforwarded byapiFetchand every rawfetch(avatar / media / fix-request / routes)localizeObjectType(t, cfg)helper so object/issue/measurement labels switch from EN defaultsAtomic commit history preserved , best reviewed via the Commits tab, not the whole diff.
📊 Type of Change
✅ Acceptance Criteria
PUT /api/users/{id}/profile/language, restores from/api/users/me.preferredLanguageon loginAccept-Language🧪 How to Test
docker compose -f docker-compose.local.yml --env-file backend/.env up -d --build --force-recreate backendcd frontend && npm run dev, log in⏱️ Estimated Review Time
15 min (commit-by-commit)