#mdbook #translation #gettext #localization

bin+lib mdbook-i18n-helpers

Plugins for a mdbook translation workflow based on Gettext

12 releases

0.3.5 Jul 23, 2024
0.3.4 Jun 14, 2024
0.3.3 May 27, 2024
0.3.2 Jan 15, 2024
0.1.0 Apr 4, 2023

#28 in Internationalization (i18n)

Download history 6790/week @ 2024-08-18 6732/week @ 2024-08-25 6932/week @ 2024-09-01 6292/week @ 2024-09-08 5546/week @ 2024-09-15 5300/week @ 2024-09-22 5218/week @ 2024-09-29 5484/week @ 2024-10-06 7926/week @ 2024-10-13 4791/week @ 2024-10-20 5474/week @ 2024-10-27 4333/week @ 2024-11-03 4258/week @ 2024-11-10 4553/week @ 2024-11-17 5147/week @ 2024-11-24 5596/week @ 2024-12-01

20,103 downloads per month

Apache-2.0

145KB
3.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

~16–27MB
~441K SLoC