Give the masthead's signal title a translation, not an English string
The sha256-of-the-URL tooltip on the masthead's wavy line was hardcoded in English regardless of the page's language. Moved it into i18n alongside the site's other strings, in all five languages. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
9ddc3ec parent: 03340bb modified
blog/i18n/en.toml +3 -0 | @@ -10,6 +10,9 @@ other = "Switch to dark theme" | ||
| 10 | 10 | [themeToLight] |
| 11 | 11 | other = "Switch to light theme" |
| 12 | 12 | |
| 13 | +[signalTitle] | |
| 14 | +other = "sha256 of this page's URL, drawn — {{ .Hash }}" | |
| 15 | + | |
| 13 | 16 | [minRead] |
| 14 | 17 | other = "{{ .Count }} min read" |
| 15 | 18 | |
| @@ -10,6 +10,9 @@ other = "Switch to dark theme" | |||
| 10 | [themeToLight] | 10 | [themeToLight] |
| 11 | other = "Switch to light theme" | 11 | other = "Switch to light theme" |
| 12 | 12 | ||
| 13 | +[signalTitle] | ||
| 14 | +other = "sha256 of this page's URL, drawn — {{ .Hash }}" | ||
| 15 | + | ||
| 13 | [minRead] | 16 | [minRead] |
| 14 | other = "{{ .Count }} min read" | 17 | other = "{{ .Count }} min read" |
| 15 | 18 | ||
modified
blog/i18n/es.toml +3 -0 | @@ -10,6 +10,9 @@ other = "Cambiar al tema oscuro" | ||
| 10 | 10 | [themeToLight] |
| 11 | 11 | other = "Cambiar al tema claro" |
| 12 | 12 | |
| 13 | +[signalTitle] | |
| 14 | +other = "sha256 de la URL de esta página, dibujado — {{ .Hash }}" | |
| 15 | + | |
| 13 | 16 | [minRead] |
| 14 | 17 | other = "{{ .Count }} min de lectura" |
| 15 | 18 | |
| @@ -10,6 +10,9 @@ other = "Cambiar al tema oscuro" | |||
| 10 | [themeToLight] | 10 | [themeToLight] |
| 11 | other = "Cambiar al tema claro" | 11 | other = "Cambiar al tema claro" |
| 12 | 12 | ||
| 13 | +[signalTitle] | ||
| 14 | +other = "sha256 de la URL de esta página, dibujado — {{ .Hash }}" | ||
| 15 | + | ||
| 13 | [minRead] | 16 | [minRead] |
| 14 | other = "{{ .Count }} min de lectura" | 17 | other = "{{ .Count }} min de lectura" |
| 15 | 18 | ||
modified
blog/i18n/fr.toml +3 -0 | @@ -10,6 +10,9 @@ other = "Passer au thème sombre" | ||
| 10 | 10 | [themeToLight] |
| 11 | 11 | other = "Passer au thème clair" |
| 12 | 12 | |
| 13 | +[signalTitle] | |
| 14 | +other = "sha256 de l’URL de cette page, dessiné — {{ .Hash }}" | |
| 15 | + | |
| 13 | 16 | [minRead] |
| 14 | 17 | other = "{{ .Count }} min de lecture" |
| 15 | 18 | |
| @@ -10,6 +10,9 @@ other = "Passer au thème sombre" | |||
| 10 | [themeToLight] | 10 | [themeToLight] |
| 11 | other = "Passer au thème clair" | 11 | other = "Passer au thème clair" |
| 12 | 12 | ||
| 13 | +[signalTitle] | ||
| 14 | +other = "sha256 de l’URL de cette page, dessiné — {{ .Hash }}" | ||
| 15 | + | ||
| 13 | [minRead] | 16 | [minRead] |
| 14 | other = "{{ .Count }} min de lecture" | 17 | other = "{{ .Count }} min de lecture" |
| 15 | 18 | ||
modified
blog/i18n/ja.toml +3 -0 | @@ -10,6 +10,9 @@ other = "ダークテーマに切り替える" | ||
| 10 | 10 | [themeToLight] |
| 11 | 11 | other = "ライトテーマに切り替える" |
| 12 | 12 | |
| 13 | +[signalTitle] | |
| 14 | +other = "このページのURLのsha256を描いたもの — {{ .Hash }}" | |
| 15 | + | |
| 13 | 16 | [minRead] |
| 14 | 17 | other = "{{ .Count }}分で読了" |
| 15 | 18 | |
| @@ -10,6 +10,9 @@ other = "ダークテーマに切り替える" | |||
| 10 | [themeToLight] | 10 | [themeToLight] |
| 11 | other = "ライトテーマに切り替える" | 11 | other = "ライトテーマに切り替える" |
| 12 | 12 | ||
| 13 | +[signalTitle] | ||
| 14 | +other = "このページのURLのsha256を描いたもの — {{ .Hash }}" | ||
| 15 | + | ||
| 13 | [minRead] | 16 | [minRead] |
| 14 | other = "{{ .Count }}分で読了" | 17 | other = "{{ .Count }}分で読了" |
| 15 | 18 | ||
modified
blog/i18n/pt.toml +3 -0 | @@ -10,6 +10,9 @@ other = "Mudar para o tema escuro" | ||
| 10 | 10 | [themeToLight] |
| 11 | 11 | other = "Mudar para o tema claro" |
| 12 | 12 | |
| 13 | +[signalTitle] | |
| 14 | +other = "sha256 do URL desta página, desenhado — {{ .Hash }}" | |
| 15 | + | |
| 13 | 16 | [minRead] |
| 14 | 17 | other = "{{ .Count }} min de leitura" |
| 15 | 18 | |
| @@ -10,6 +10,9 @@ other = "Mudar para o tema escuro" | |||
| 10 | [themeToLight] | 10 | [themeToLight] |
| 11 | other = "Mudar para o tema claro" | 11 | other = "Mudar para o tema claro" |
| 12 | 12 | ||
| 13 | +[signalTitle] | ||
| 14 | +other = "sha256 do URL desta página, desenhado — {{ .Hash }}" | ||
| 15 | + | ||
| 13 | [minRead] | 16 | [minRead] |
| 14 | other = "{{ .Count }} min de leitura" | 17 | other = "{{ .Count }} min de leitura" |
| 15 | 18 | ||
modified
blog/layouts/partials/masthead.html +1 -1 | @@ -13,7 +13,7 @@ | ||
| 13 | 13 | <div |
| 14 | 14 | class="masthead__signal" |
| 15 | 15 | aria-hidden="true" |
| 16 | - title="sha256 of this page's URL, drawn — {{ $signal.hash }}" | |
| 16 | + title="{{ i18n "signalTitle" (dict "Hash" $signal.hash) }}" | |
| 17 | 17 | > |
| 18 | 18 | <svg viewBox="0 0 1000 100" preserveAspectRatio="none" focusable="false"> |
| 19 | 19 | <defs> |
| @@ -13,7 +13,7 @@ | |||
| 13 | <div | 13 | <div |
| 14 | class="masthead__signal" | 14 | class="masthead__signal" |
| 15 | aria-hidden="true" | 15 | aria-hidden="true" |
| 16 | - title="sha256 of this page's URL, drawn — {{ $signal.hash }}" | 16 | + title="{{ i18n "signalTitle" (dict "Hash" $signal.hash) }}" |
| 17 | > | 17 | > |
| 18 | <svg viewBox="0 0 1000 100" preserveAspectRatio="none" focusable="false"> | 18 | <svg viewBox="0 0 1000 100" preserveAspectRatio="none" focusable="false"> |
| 19 | <defs> | 19 | <defs> |