rust-i18n | A better and simply I18n crate for Rust
kandi X-RAY | rust-i18n Summary
kandi X-RAY | rust-i18n Summary
rust-i18n is a Rust library. rust-i18n has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.
Rust I18n is a crate for loading localized text from a set of YAML mapping files. The mappings are converted into data readable by Rust programs at compile time, and then localized text can be loaded by simply calling the provided t! macro. The API of this crate is inspired by ruby-i18n and Rails I18n.
Rust I18n is a crate for loading localized text from a set of YAML mapping files. The mappings are converted into data readable by Rust programs at compile time, and then localized text can be loaded by simply calling the provided t! macro. The API of this crate is inspired by ruby-i18n and Rails I18n.
Support
Quality
Security
License
Reuse
Support
rust-i18n has a low active ecosystem.
It has 129 star(s) with 14 fork(s). There are 10 watchers for this library.
It had no major release in the last 12 months.
There are 9 open issues and 11 have been closed. On average issues are closed in 77 days. There are 1 open pull requests and 0 closed requests.
It has a neutral sentiment in the developer community.
The latest version of rust-i18n is v1.2.1
Quality
rust-i18n has 0 bugs and 0 code smells.
Security
rust-i18n has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
rust-i18n code analysis shows 0 unresolved vulnerabilities.
There are 0 security hotspots that need review.
License
rust-i18n is licensed under the MIT License. This license is Permissive.
Permissive licenses have the least restrictions, and you can use them in most projects.
Reuse
rust-i18n releases are available to install and integrate.
Installation instructions, examples and code snippets are available.
Top functions reviewed by kandi - BETA
kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of rust-i18n
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of rust-i18n
rust-i18n Key Features
No Key Features are available at this moment for rust-i18n.
rust-i18n Examples and Code Snippets
[dependencies]
lazy_static = "1.4.0"
rust-i18n = "0"
[package.metadata.i18n]
# The available locales for your application, default: ["en"].
# available-locales = ["en", "zh-CN"]
# The default locale, default: "en".
# default-locale = "en"
# Path f
$ cargo install rust-i18n
# Now you have `cargo i18n` command
$ cd your_project_root_directory
$ cargo i18n
Checking [en] and generating untranslated texts...
Found 1 new texts need to translate.
----------------------------------------
Writing to
use rust_i18n::t;
t!("hello");
// => "Hello world"
t!("hello", locale = "zh-CN");
// => "你好世界"
t!("messages.hello", name = "world");
// => "Hello, world"
t!("messages.hello", locale = "zh-CN", name = "Jason");
// => "你好, Jason"
Community Discussions
No Community Discussions are available at this moment for rust-i18n.Refer to stack overflow page for discussions.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install rust-i18n
Rust I18n also provided a cargo i18n command line tool help you process translations.
Support
For any new features, suggestions and bugs create an issue on GitHub.
If you have any questions check and ask questions on community page Stack Overflow .
Find more information at:
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page