Commit db19a9e
authored
fix(project): restore localized language handling (#1131)
* fix(project): restore localized language labels
Restore project page language selector localization on top of the current PR branch.
Use native language labels in the selected pill, localize project-page UI/error states, and add plural-aware count strings.
Use the current request display language for project page reads and deduplicate language options while preserving native short labels.
Deploy: agora, api
* fix(translation): preserve display targets
Preserve configured target languages even when they match a detected source language. Source detection now contributes to effective display language selection without removing explicitly configured targets.\n\nAlso allow project-inherited conversations to include the auto-detected conversation display language in eager AI description translation targets. This keeps eager AI description translations aligned with the effective display language set for both conversation overrides and project inheritance.\n\nDeploy: api, math-updater, ai-description-retry-worker, description-translation-retry-worker
* fix(agora): keep drawer width stable
Constrain the Quasar drawer scroll content and sidebar internals so localized navigation labels cannot expand the desktop drawer beyond its configured width.
Long French and Spanish menu labels previously widened the scroll area, causing the logo to appear off-center in the visible 200px drawer. Menu labels now truncate within the available drawer width instead of shifting the layout.
Verification: cd services/agora && pnpm lint
Deploy: agora
* fix(project): show activity translations
Expose original and machine-translated activity content in the project page activity payload so cards can render the same translation control used elsewhere.
Project activity cards now toggle between original and translated conversation content without triggering the surrounding card navigation, preserving click-through behavior for the translation control while keeping the card itself navigable.
Generated project page API artifacts were updated for the expanded activity response shape.
Deploy: agora, api
* refactor(api): clarify translation language flow
Include project subtitle text in project content language detection so project source detection uses the full title, subtitle, and body corpus.\n\nCentralize the same-language translation skip helper used by content translation and project pages, and document that conversation target-language rows are the materialized effective target snapshot for workers, including project-inherited settings.\n\nDeploy: api
* fix(translation): queue effective content targets
Use detected content metadata as read-only output while removing request-side source language settings from create, update, and import flows.
Resolve effective multilingual targets separately from configured conversation overrides so project-inherited conversations queue eager translations from project language settings. Keep per-source same-language skips at scheduling time and add queue-mode logging to distinguish eager-visible work from user-interactive lazy requests.
Update frontend translation consumers to prefer contentLanguageMetadata, regenerate OpenAPI clients, and refresh the import-worker contract after removing legacy request languageSetting inputs.
Deploy: agora, api, import-worker
* test(api): cover detector language names
Add a regression test for shouldSkipTranslation so raw detector language names such as English compare correctly against display language codes like en.
Deploy: none1 parent fa5070d commit db19a9e
89 files changed
Lines changed: 4745 additions & 1488 deletions
File tree
- services
- agora/src
- api
- .openapi-generator
- docs
- components
- newConversation
- dialog
- post
- project
- composables/conversation
- draft
- layouts
- pages
- conversation
- [conversationSlugId]/edit
- [postSlugId].onboarding
- new/create
- dev
- test-components
- project
- settings/account/administrator/project
- stores
- utils
- api
- comment
- post
- translation
- api
- src
- service
- administrator
- conversationImport
- tests
- import-worker
- src/import_worker
- tests
- load-testing/src
- api
- .openapi-generator
- docs
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
151 | | - | |
152 | | - | |
153 | | - | |
| 151 | + | |
154 | 152 | | |
155 | 153 | | |
156 | 154 | | |
| |||
183 | 181 | | |
184 | 182 | | |
185 | 183 | | |
| 184 | + | |
186 | 185 | | |
187 | 186 | | |
188 | 187 | | |
| |||
214 | 213 | | |
215 | 214 | | |
216 | 215 | | |
217 | | - | |
218 | 216 | | |
219 | 217 | | |
220 | 218 | | |
| |||
325 | 323 | | |
326 | 324 | | |
327 | 325 | | |
| 326 | + | |
| 327 | + | |
328 | 328 | | |
329 | 329 | | |
330 | 330 | | |
| |||
0 commit comments