Service Layer medium complexity mobile
2
Dependencies
1
Dependents
0
Entities
0
Integrations

Description

Central service managing runtime locale switching for the Flutter app using flutter_localizations and the intl package. Loads ARB files for the selected locale, applies organization-specific terminology overrides retrieved from the backend, and broadcasts locale changes to the widget tree without requiring an app restart.

Feature: Sami Language Support

localization-service

Responsibilities

  • Load and serve ARB translation bundles for nb, en, and se locales
  • Fetch organization-specific Sami terminology overrides from the backend API
  • Apply terminology overrides on top of base ARB translations at runtime
  • Persist selected locale to Preferences Repository and restore on startup
  • Broadcast MaterialApp locale changes via BLoC or Riverpod state

Interfaces

setLocale(locale: Locale): Future<void>
getCurrentLocale(): Locale
translate(key: String): String
loadOrganizationOverrides(orgId: String): Future<void>
getSupportedLocales(): List<Locale>

Relationships

Dependencies (2)

Components this component depends on

Dependents (1)

Components that depend on this component