gbif / gbif-web

Apache License 2.0
6 stars 9 forks source link

add 2 versions for active/inactive collection/institution #556

Open MortenHofft opened 1 month ago

MortenHofft commented 1 month ago

On russian (and possible other languages) active collection/institution needs to be different. So we need to have two distinct translations

MortenHofft commented 1 month ago

We could do this 2 ways.

One string, that takes a param about what entity we are talking about

<FormattedMessage
  id="grscicoll.active"
  defaultMessage="{noun, select,
    institution {active (inst)} coll {active (collection)}
    other {active other} 
  }"
  values={{"noun": "institution"}}
/>
output: active (inst)

or having two translation strings grscicoll.activeInstitution and grscicoll.activeCollections