#build-script #localization #locale #gettext

build 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.

20 releases

0.9.0 Sep 10, 2023
0.8.2 Feb 10, 2022
0.8.1 Nov 29, 2021
0.7.0 Mar 18, 2021
0.4.1 May 20, 2020

#232 in Build Utils

45 downloads per month
Used in cargo-i18n

MIT license

82KB
1.5K 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

~14–22MB
~158K SLoC