Crate i18n_build

source ·
Expand description

This library is designed for use within the cargo-i18n tool for localizing crates. It has been exposed and published as a library to allow its direct use within project build scripts if required.

xtr (installed with cargo install xtr), and GNU Gettext CLI tools msginit, msgfmt, msgmerge and msgcat to be present in your system path.

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

Modules

  • Error types for use with the i18n_build library.
  • This module contains the implementation for localizing using the gettext localization system.
  • Utility functions for use with the i18n_build library.
  • Utility functions to use within a build.rs build script using this library.

Functions

  • Obtain a Localizer for localizing this library.
  • Run the i18n build process for the provided crate, which must contain an i18n config.