Skip to content

Conversation

@howieandersen
Copy link
Contributor

@howieandersen howieandersen commented Nov 25, 2025

Description

  • Implement TranslationService with Constants lookup before database fallback
  • Add language normalization (eng, nob, nno) with Bokmål as base language
  • Add in-memory caching for database translations (30min TTL)
  • Integrate translation middleware for Accept-Language header parsing
  • Add X-Accept-Partial-Translation custom header support
  • Apply translations to all RolesController and PackagesController endpoints
  • Add comprehensive test suite for translation functionality
  • Add fluent extension methods for translation chains
  • Set Content-Language response headers automatically

3 of the new tests are failing because they are dependent on database access during testing, which will be fixed in the near future.

Related Issue(s)

Verification

  • Your code builds clean without any errors or warnings
  • Manual testing done (required)
  • Relevant automated test added (if you find this hard, leave it and we'll help out)
  • All tests run green

Documentation

  • User documentation is updated with a separate linked PR in altinn-studio-docs. (if applicable)

…a API

- Implement TranslationService with Constants lookup before database fallback
- Add language normalization (eng, nob, nno) with Bokmål as base language
- Add in-memory caching for database translations (30min TTL)
- Integrate translation middleware for Accept-Language header parsing
- Add X-Accept-Partial-Translation custom header support
- Apply translations to all RolesController and PackagesController endpoints
- Add comprehensive test suite (34 tests) for translation functionality
- Add fluent extension methods for translation chains
- Set Content-Language response headers automatically
@howieandersen howieandersen changed the title Add translation service with Constants-first lookup for Metadata API Add TranslationService with constants-first lookup for Metadata API Nov 25, 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.

1 participant