-
Notifications
You must be signed in to change notification settings - Fork 20
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
translate title #168
Comments
You can specify a custom title for each block, if that would help. The default titles aren't currently localized, I think this would be reasonably easy to add as a |
Yes, but then I have to do it for every block, it's not quite as nice as central. The |
The point where a directive (the thing like mdbook-admonish/src/resolve.rs Line 48 in 8a0ecc5
Because the number of directives is pretty limited, I wouldn't overthink this, I'd be happy with a big old hardcoded static list of translations by language. We can then decide which set of translations to use by loading a config option from the file, and threading it down like we do with custom directives here: mdbook-admonish/src/resolve.rs Line 74 in 8a0ecc5
It may be the case using an internationalization framework like https://github.com/longbridgeapp/rust-i18n would make it simpler, but it might also make it more complex, kind of up to you which is easier. The point I would add the config option for Line 9 in 8a0ecc5
|
We could use the |
hello,
is it possible to translate the titles?
The text was updated successfully, but these errors were encountered: