<p dir="auto">In light of <a href="https://www.openstreetmap.org/user/TrickyFoxy/diary/399621" rel="nofollow">https://www.openstreetmap.org/user/TrickyFoxy/diary/399621</a> I have resurrected my locale selector branch from many years ago that attempted to address <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="123230266" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/1115" data-hovercard-type="issue" data-hovercard-url="/openstreetmap/openstreetmap-website/issues/1115/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/issues/1115">#1115</a>.</p>
<p dir="auto">The rebased and updated version is running at <a href="https://locale.apis.dev.openstreetmap.org/" rel="nofollow">https://locale.apis.dev.openstreetmap.org/</a> as it has been for the last N years...</p>
<p dir="auto">Outstanding issues that we need to think about before we can consider merging this:</p>
<ul dir="auto">
<li>Where exactly to put the trigger control and how to present it - currently I have it showing the language code to save space while Wikimedia normally show the full language name.</li>
<li>What should take priority for logged in users? or maybe we just hide the control for logged in users?</li>
<li>Do we need a way to clear the override (other that restarting browser, which loses the session cookie) or not? Possibly if we ignore the cookie and hide the control for logged in users then we don't?</li>
</ul>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/openstreetmap/openstreetmap-website/pull/3618'>https://github.com/openstreetmap/openstreetmap-website/pull/3618</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/3618/commits/b0a02a8a326c4e972518e32eae82fce5848d651c" class="commit-link">b0a02a8</a>  Add a locale selector</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/3618/files">23 files</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/3618/files#diff-29beaabe278fd17493296745cecb67919f0906b47b8246ab770f5517615d9ef7">.rubocop_todo.yml</a>
    (4)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/3618/files#diff-97d92457f6d9fdf1f937ddfe97aad5f7313ac0cee8894400f984d86f9dfa462c">Vendorfile</a>
    (8)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/3618/files#diff-0e145ba000e96b1a45d230275e350e4e8514efb4db7dbcfa228fe1003896c9b4">app/assets/javascripts/application.js</a>
    (1)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/3618/files#diff-a9b88a8a3644f944b9bd54361da588c69fa6a210cf7327194c17895a8ad2b0d6">app/assets/javascripts/osm.js.erb</a>
    (1)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/3618/files#diff-50e45e25b0fed069c7b10902b14b389cf070d318e22333a6103da07d710943c3">app/assets/javascripts/uls.js</a>
    (30)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/3618/files#diff-c9266aff2f078dec54cfab944e55552a30f6a2fea5f7a3a6beb52376356094e4">app/assets/stylesheets/screen-ltr.css</a>
    (1)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/3618/files#diff-3df7464fd7ca73ca4571a4a773afa81fcb81e30057cbb4b58f9cd29ddcd49a3e">app/assets/stylesheets/screen-rtl.css</a>
    (1)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/3618/files#diff-be6488904686cc9d2e4c6c8a7c20b9338e3250813f0ff592956107e561bbc93b">app/assets/stylesheets/uls.scss</a>
    (42)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/3618/files#diff-766c34fd6533171eaf54300c153f89d6002c35c02cfc9c5b219251f85180ad07">app/controllers/application_controller.rb</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/3618/files#diff-cfdccd0a9d5df5a43aaad2a35d36ebbe187c52ad5fdc9846fa189d04537adb6e">app/controllers/users_controller.rb</a>
    (6)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/3618/files#diff-6d2ef58207c92d1533287af551a075122ba98240a861819047a2ae77b7674f0b">app/views/layouts/_header.html.erb</a>
    (2)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/3618/files#diff-145e2f8ce5167dcdd101b2269684d322e806df3da0b695719041ac8700229b64">vendor/assets/jquery.uls/css/jquery.uls.css</a>
    (119)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/3618/files#diff-2d94a9cffcc3652bb941688206f829fc1e7fa2ec25cd2eed282c8d8f15020f05">vendor/assets/jquery.uls/css/jquery.uls.grid.css</a>
    (307)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/3618/files#diff-6f4bc26baeba9e13d5e8fa40953fd1efaed2b1cec84a9117ea520de84c9a36cf">vendor/assets/jquery.uls/css/jquery.uls.lcd.css</a>
    (140)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/3618/files#diff-5be2886eb3a1996f516297eeac86a6c64b0ba3979b39435f0edf7ee4034547d9">vendor/assets/jquery.uls/css/jquery.uls.mobile.css</a>
    (307)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/3618/files#diff-fa3e57b6e4557df32a48e864132210515500cb46666cf0450b84bbdb8850a3ea">vendor/assets/jquery.uls/images/close.svg</a>
    (8)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/3618/files#diff-4cce587f9f6c5ad5fd403279b2dd92b41747b083d3809af68690a91d79c4fa77">vendor/assets/jquery.uls/images/language.svg</a>
    (7)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/3618/files#diff-9fe47d1520128e5dbefb6f8f5d7b0943bf8a2220cb61535a9cb3d290ec1c6309">vendor/assets/jquery.uls/images/search.svg</a>
    (7)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/3618/files#diff-8466f0c7d77c761b471a7f29bd362a203d52df4f451f5a8c0a48413a305e5859">vendor/assets/jquery.uls/src/jquery.uls.core.js</a>
    (499)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/3618/files#diff-2e45a4fbc1465a284850e7509b83c8f16b39af8d6bedd30778c725d600e7141f">vendor/assets/jquery.uls/src/jquery.uls.data.js</a>
    (6412)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/3618/files#diff-2b9233a821597641cc982c7772d9d418e6eda9bb13378bd708e0e0efa9643b1b">vendor/assets/jquery.uls/src/jquery.uls.data.utils.js</a>
    (335)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/3618/files#diff-726684217af47a730afa909b948f80c0f963af90e09667160f4859d8f99a1089">vendor/assets/jquery.uls/src/jquery.uls.languagefilter.js</a>
    (361)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/3618/files#diff-1058896b3c3ef9291f926cbe1944e67db32f3eb8306c0dc563e5e9768e74dccb">vendor/assets/jquery.uls/src/jquery.uls.lcd.js</a>
    (481)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/3618.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/3618.patch</a></li>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/3618.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/3618.diff</a></li>
</ul>

<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/pull/3618">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLPFV5EI2HBFUJSIL4LVVUQ67ANCNFSM54PQAK5Q">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLOU5H2OQQUYNVOOR43VVUQ67A5CNFSM54PQAK52YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4TTOW3TA.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/pull/3618</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/pull/3618",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/3618",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>