Localization
mdbooksharp localize only small part of user interface.
Change locale
You can change locale by settings.json:
{
"Language":"en"
}
List of available locales you can see here
Add locale
You can add locale by open pull request or add to folder inside project:
book root
...
├── src
│ │
│ ├── locales // Folder for locales
│ │ |
└── locale.json // locale file
...
Localization based on i18n files:
{
"sidebar": "Toggle Table of Contents",
"theme": "Change theme",
"theme_light": "Rust",
"theme_dark": "Navy",
"search": "Search",
"search_book": "Search this book...",
"print": "Print this book",
"back": "Previous chapter",
"next": "Next chapter"
}
Search
Search functions do not require localization. During book generation, a token directory based on UTF-8 characters is compiled, enabling full-text search based on character alphabets rather than language.