Skip to content

Figure out how to export alt=variant versions of elements #139

Description

@movermeyer

Many of the elements in CLDR have alt=variant versions that are supposed to be used "in some circumstances".

Figure out how we should export these.


Examples

eraNames

common/main/zu.xml

<eraNames>
  <era type="0">BC</era>
  <era type="0" alt="variant">BCE</era>
  <era type="1">AD</era>
  <era type="1" alt="variant">CE</era>
</eraNames>

Currency symbol

common/main/af.xml

<currency type="TRY">
  <displayName>Turkse lira</displayName>
  <displayName count="one">Turkse lira</displayName>
  <displayName count="other">Turkse lira</displayName>
  <symbol draft="contributed">TRY</symbol>
  <symbol alt="narrow" draft="contributed">₺</symbol>
  <symbol alt="variant" draft="contributed">TL</symbol>
</currency>

territory names

common/main/de.xml

<territory type="CD">Kongo-Kinshasa</territory>
<territory type="CD" alt="variant">Kongo (Demokratische Republik)</territory>

common/main/de.xml

language names

<language type="ckb">Zentralkurdisch</language>
<language type="ckb" alt="menu">Kurdisch (Sorani)</language>
<language type="ckb" alt="variant">↑↑↑</language>

dayPeriod

common/main/en.xml

<dayPeriod type="am">AM</dayPeriod>
<dayPeriod type="am" alt="variant">am</dayPeriod>

common/main/en.xml

<field type="dayperiod-short">
  <displayName>AM/PM</displayName>
  <displayName alt="variant">am/pm</displayName>
</field>

script names

common/main/en.xml

<script type="Arab">Arabic</script>
<script type="Arab" alt="variant">Perso-Arabic</script>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions