Skip to content

Commit

Permalink
add language mapping for nds export
Browse files Browse the repository at this point in the history
  • Loading branch information
diegosteiner committed Oct 20, 2023
1 parent 1bb22de commit 9f9370d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/domain/export/tabular/people/participation_nds_row.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

module Export::Tabular::People
class ParticipationNdsRow < Export::Tabular::People::PersonRow
NDS_LANGUAGE_MAPPING = %w[DE FR IT].to_h { [_1, _1] }.freeze

attr_reader :participation

Expand Down Expand Up @@ -68,7 +69,7 @@ def email_work
end

def first_language
'DE'
NDS_LANGUAGE_MAPPING.fetch(entry.language.presence&.to_s&.upcase, 'Andere')
end

def second_language
Expand Down

0 comments on commit 9f9370d

Please sign in to comment.