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

how to .. localization ? #2363

Closed
221V opened this issue Apr 14, 2024 · 1 comment
Closed

how to .. localization ? #2363

221V opened this issue Apr 14, 2024 · 1 comment
Labels
C-question Category: A question on how to do something

Comments

@221V
Copy link

221V commented Apr 14, 2024

Question

{{ theme_option "Light" }}
{{ theme_option "Dark" }}

how to set my value (localization instead english) for this key in index.hbs ?

documentation still so poor ((

thank you!

Version

No response

@221V 221V added the C-question Category: A question on how to do something label Apr 14, 2024
@ehuss
Copy link
Contributor

ehuss commented Apr 15, 2024

theme_option isn't localizable, and will be removed in a future release.

In index.hbs, there is a hard-coded list of theme names here, which can be modified to be in the language of your choice.

Otherwise, unfortunately, mdbook does not have built-in support for localization. I'm going to close in reference to #5 where localization support is tracked.

@ehuss ehuss closed this as not planned Won't fix, can't repro, duplicate, stale Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-question Category: A question on how to do something
Projects
None yet
Development

No branches or pull requests

2 participants