#mdbook #translation #gettext #localization

bin+lib mdbook-i18n-helpers

Plugins for a mdbook translation workflow based on Gettext

9 releases

0.3.2 Jan 15, 2024
0.3.1 Jan 5, 2024
0.3.0 Nov 9, 2023
0.2.4 Sep 27, 2023
0.1.0 Apr 4, 2023

#45 in Internationalization (i18n)

Download history 2612/week @ 2024-01-03 2162/week @ 2024-01-10 2163/week @ 2024-01-17 2058/week @ 2024-01-24 1737/week @ 2024-01-31 1590/week @ 2024-02-07 2320/week @ 2024-02-14 1563/week @ 2024-02-21 2283/week @ 2024-02-28 2824/week @ 2024-03-06 1491/week @ 2024-03-13 1476/week @ 2024-03-20 962/week @ 2024-03-27 1370/week @ 2024-04-03 1954/week @ 2024-04-10 1433/week @ 2024-04-17

5,856 downloads per month

Apache-2.0

105KB
2.5K SLoC

Gettext Translation Support for mdbook

Visit crates.io Build workflow GitHub contributors GitHub stars

The plugins here makes it easy to translate documentation written in mdbook into multiple languages. Support for translations is a long-stading feature request for mdbook.

Installation

Run

$ cargo install mdbook-i18n-helpers

Please see USAGE for how to translate your mdbook project.

Configuration

You can customize the plugins in your book.toml file.

mdbook-xgettext

  • output.xgettext.pot-file (no default, required): Set this to the path of your POT file. A typical value is messages.pot, see examples in USAGE.
  • output.xgettext.granularity (default: 1): Set this to n to round all line numbers down to the nearest multiple of n. Set this to 0 to remove line numbers completely from the PO file. This can help reduce churn in your PO files when messages edited.

Changelog

Please see the CHANGELOG for details on the major changes in each release.

Contact

For questions or comments, please contact Martin Geisler or start a discussion. We would love to hear from you.


This is not an officially supported Google product.

Dependencies

~13–25MB
~338K SLoC