package localization import ( "context" "tercul/internal/domain/localization" ) // Service handles localization-related operations. type Service struct { repo localization.LocalizationRepository } // NewService creates a new localization service. func NewService(repo localization.LocalizationRepository) *Service { return &Service{repo: repo} } // GetTranslation returns a translation for a given key and language. func (s *Service) GetTranslation(ctx context.Context, key string, language string) (string, error) { return s.repo.GetTranslation(ctx, key, language) } // GetTranslations returns a map of translations for a given set of keys and language. func (s *Service) GetTranslations(ctx context.Context, keys []string, language string) (map[string]string, error) { return s.repo.GetTranslations(ctx, keys, language) }