<p dir="auto">These only apply to the en.yml file for now, but can be expanded in due course.</p>
<p dir="auto">I had a long search for any third-party utilities that could do this for us, but I didn't find anything appropriate. None of the generic yaml validators that I found allowed custom validations of values (most were just focussed on validating the type of the value, int/string/hash etc against a fixed schema). I also checked for any i18n-specific validators, but again I didn't find any that could validate the values.</p>
<p dir="auto">I expect to expand these checks to cover the rest of the translations, but there are currently a bunch of translations in the output that contain html elements (that aren't included in en.yml, which is interesting). I also expect to expand these check to add more validations, perhaps validating urls point to the same domain, and things like that.</p>

<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/4007'>https://github.com/openstreetmap/openstreetmap-website/pull/4007</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/4007/commits/387d130e87b79cb428f7554c1a233de5d0627ae9" class="commit-link">387d130</a>  Add some validations for i18n values</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4007/files">1 file</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4007/files#diff-d239b4f99b630c49f6aa3e9730125d38ab1f53162e832577d54643e44b08c5b9">test/lib/i18n_test.rb</a>
    (35)
  </li>
</ul>

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