Sample plugin is really great to get started. Is there any way i can inherit the current language that is being rendered in the plugin ? I see that the pages that are returned are scoped within a directory (in case of multi-lingual site)
For example, in a book like this:
en_US/chapter-1/section.html is passed to the page:function(page) { } as chapter-1/section.html
How do i get the language ?
Also the default template has <html lang="en-US">. I want to leverage the language Attribute for a multi-lingual doc so that i need to apply custom settings based on language (For example Fonts)
Sample plugin is really great to get started. Is there any way i can inherit the current language that is being rendered in the plugin ? I see that the pages that are returned are scoped within a directory (in case of multi-lingual site)
For example, in a book like this:
en_US/chapter-1/section.html
is passed to thepage:function(page) { }
aschapter-1/section.html
How do i get the language ?
Also the default template has
<html lang="en-US">
. I want to leverage the language Attribute for a multi-lingual doc so that i need to apply custom settings based on language (For example Fonts)Any pointers are appreciated