stumptown-content
stumptown-content copied to clipboard
Static section titles spelled out in front-matter(?)
Spawned from this thread/idea. As of soon, the heading words Examples
and Browser Compatibility
will be hardcoded deep in the stumptown-content/scripts/build-json/*.js
which isn't a very good place for localizers to type up their translation such as Exemples
or Compatibilité des navigateurs
.
One idea would be to extend the front-matter to include these words. E.g. the en-US
Markdown file could have this diff:
-browser_compatibility: html.elements.video
+browser_compatibility:
+ title: Compatibilité des navigateurs
+ query: html.elements.video
Then, if a French translator copies that (e.g.) en-US/some/path/to/page.md
to fr/some/path/to/page.md
then when they start translating the title
in the front-matter they can translate all titles in the front-matter.