<p></p>
<p dir="auto">It looks like our fallback process for the community name i18n isn't sufficient. The osm-community-index has some extra complexity and indirection that nobody noticed during development.</p>
<p dir="auto">Let's say we are viewing the site in Polish, and looking at the OpenStreetMap France chapter.</p>
<p dir="auto"><a href="https://github.com/osmlab/osm-community-index/blob/main/resources/europe/france/fr-chapter.json">https://github.com/osmlab/osm-community-index/blob/main/resources/europe/france/fr-chapter.json</a></p>
<div class="highlight highlight-source-json" dir="auto"><pre>  <span class="pl-ent">"id"</span>: <span class="pl-s"><span class="pl-pds">"</span>fr-chapter<span class="pl-pds">"</span></span>,
  <span class="pl-ent">"type"</span>: <span class="pl-s"><span class="pl-pds">"</span>osm-lc<span class="pl-pds">"</span></span>,</pre></div>
<p dir="auto">So we want to find out the name of the chapter, we look for <code class="notranslate">fr-chapter</code> in the pl.yaml file:</p>
<p dir="auto"><a href="https://github.com/osmlab/osm-community-index/blob/main/i18n/pl.yaml">https://github.com/osmlab/osm-community-index/blob/main/i18n/pl.yaml</a></p>
<div class="highlight highlight-source-yaml" dir="auto"><pre>  <span class="pl-ent">de-viersen-meetup</span>:
    <span class="pl-ent">name</span>: <span class="pl-s">Spotkania OpenStreetMap Viersen</span>
    <span class="pl-ent">description</span>: <span class="pl-s">Spotkania społeczności i użytkowników OSM z Viersen i Mönchengladbach</span>
  <span class="pl-ent">fr-chapter</span>:
    <span class="pl-ent">description</span>: <span class="pl-s">Pomagamy rozwijać i ulepszać OpenStreetMap we Francji.</span>
  <span class="pl-ent">fr-matrix</span>:
    <span class="pl-ent">description</span>: <span class="pl-s"><span class="pl-pds">'</span>Kanał społeczności OSM France na Matriksie: {url} (połączony z Telegramem)<span class="pl-pds">'</span></span></pre></div>
<p dir="auto">Note that there's a description, but there's <strong>no name attribute</strong>. It turns out that the name attributes are optional, as part of a process to reduce translation duplication.</p>
<p dir="auto">Since there's no name attribute, we can look up what the fallback should be for our object, which is an <code class="notranslate">osm-lc</code>:</p>
<div class="highlight highlight-source-yaml" dir="auto"><pre><span class="pl-ent">_defaults</span>:
    <span class="pl-s">...</span>
    <span class="pl-ent">osm</span>:
      <span class="pl-ent">name</span>: <span class="pl-s"><span class="pl-pds">'</span>{community}<span class="pl-pds">'</span></span>
    <span class="pl-ent">osm-lc</span>:
      <span class="pl-ent">name</span>: <span class="pl-s"><span class="pl-pds">'</span>{community}<span class="pl-pds">'</span></span>
    <span class="pl-ent">reddit</span>:
      <span class="pl-ent">name</span>: <span class="pl-s"><span class="pl-pds">'</span>{community} na Reddit<span class="pl-pds">'</span></span>
      <span class="pl-ent">url</span>: <span class="pl-s">https://www.reddit.com/r/{account}</span></pre></div>
<p dir="auto">OK, so for local chapters, the name defaults to the community name. And in the <code class="notranslate">_communities</code> list, there's a bunch of community names, e.g.</p>
<div class="highlight highlight-source-yaml" dir="auto"><pre><span class="pl-ent">_communities</span>:
    <span class="pl-ent">geolibres</span>: <span class="pl-s">GeoLibres</span>
    <span class="pl-ent">kiribatiwomeninmapping</span>: <span class="pl-s">Kobiety z Kiribati Mapujące</span>
    <span class="pl-ent">mappingbotswana</span>: <span class="pl-s">Mapowanie Botswany</span>
    <span class="pl-s">...</span>
    <span class="pl-ent">openstreetmapfinland</span>: <span class="pl-s">OpenStreetMap Finlandia</span>
    <span class="pl-ent">openstreetmapfrance</span>: <span class="pl-s">OpenStreetMap Francja</span>
    <span class="pl-ent">openstreetmapfreemapslovakia</span>: <span class="pl-s">Strona Freemap Słowacja</span></pre></div>
<p dir="auto">So that's where we're supposed to get the name for the local chapter.</p>
<p dir="auto">But the missing piece of the puzzle for me is how do we find out the community to use (in this case <code class="notranslate">openstreetmapfrance</code>)? There's no link that I can find between <code class="notranslate">fr-chapter</code> and <code class="notranslate">openstreetmapfrance</code>, and in fact the <code class="notranslate">openstreetmapfrance</code> key is only found in the translations and not elsewhere in the osm-community-index repo.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/issues/3814">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLLNJPHROTIAJ7GP4CLWJXZ7LANCNFSM6AAAAAASI2MEX4">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLOCV2ACRKBSPFIQIMLWJXZ7LA5CNFSM6AAAAAASI2MEX6WGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHFOHIQIU.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/issues/3814</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/issues/3814",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/3814",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>