stumptown-content icon indicating copy to clipboard operation
stumptown-content copied to clipboard

Static section titles spelled out in front-matter(?)

Open peterbe opened this issue 4 years ago • 1 comments

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.

peterbe avatar Oct 22 '19 01:10 peterbe