Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi-Lingual Book Settings #13

Open
nareshv opened this issue Oct 5, 2014 · 3 comments
Open

Multi-Lingual Book Settings #13

nareshv opened this issue Oct 5, 2014 · 3 comments

Comments

@nareshv
Copy link

nareshv commented Oct 5, 2014

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)

Any pointers are appreciated

@nareshv
Copy link
Author

nareshv commented Oct 5, 2014

further inspection of page shows there is page.rawPath which has language attribute as well. Probably that can be used temporarily for parsing...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@nareshv and others