#script #build #i18n #gettext #locale

i18n-build

Designed for use within the cargo-i18n tool for localizing crates. It has been published to allow its direct use within project build scripts if required.

12 releases (4 breaking)

0.5.3 Oct 17, 2020
0.5.2 Aug 27, 2020
0.4.1 May 20, 2020
0.3.1 Apr 20, 2020
0.1.1 Apr 10, 2020

#77 in Build Utils

Download history 15/week @ 2020-07-05 18/week @ 2020-07-12 24/week @ 2020-07-19 11/week @ 2020-07-26 4/week @ 2020-08-02 31/week @ 2020-08-09 25/week @ 2020-08-16 54/week @ 2020-08-23 16/week @ 2020-08-30 52/week @ 2020-09-06 13/week @ 2020-09-13 11/week @ 2020-09-20 10/week @ 2020-09-27 15/week @ 2020-10-04 20/week @ 2020-10-11 20/week @ 2020-10-18

92 downloads per month
Used in cargo-i18n

MIT license

72KB
1K SLoC

i18n-build crates.io badge docs.rs badge license badge github actions badge

A library for use within the cargo-i18n tool for localizing crates. It has been published to allow its direct use within project build scripts if required.

Changelog

Optional Features

The i18n-build crate has the following optional Cargo features:

  • localize
    • Enables the runtime localization of this library using localize() function via the i18n-embed crate.

Contributing

Pull-requests are welcome, but for design changes it is preferred that you create a GitHub issue first to discuss it before implementation. You can also contribute to the localization of this library via POEditor - i18n-build or use your favourite po editor.

To add a new language, you can make a request via a GitHub issue, or submit a pull request adding the new locale to i18n.toml and generating the associated new po files using cargo i18n.

Authors

Dependencies

~5.5MB
~88K SLoC