Docs.rs
rigsql-i18n-0.5.0
rigsql-i18n 0.5.0
Docs.rs crate page
MIT
Links
Repository
crates.io
Source
Owners
yoshiomiyamae
github:yukonsky:dev-team
Dependencies
rust-i18n ^3
normal
Versions
85.71%
of the crate is documented
Go to latest version
Platform
aarch64-apple-darwin
aarch64-unknown-linux-gnu
i686-pc-windows-msvc
x86_64-pc-windows-msvc
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
Skip to main content
Crate rigsql_i18n
rigsql_
i18n
0.5.0
All Items
Crate Items
Functions
Crate
rigsql_
i18n
Copy item path
Source
Functions
§
get_
locale
Get the current global locale.
rule_
description
Get a translated rule description by rule code (e.g. “LT01”). Falls back to the provided default if no translation exists.
rule_
explanation
Get a translated rule explanation by rule code (e.g. “LT01”). Falls back to the provided default if no translation exists.
rule_
message
Translate a violation message using its key and parameters. Returns the translated message with parameters substituted. Falls back to
fallback
if no translation is found or key is empty.
set_
locale
Set the global locale. Use “en”, “ja”, etc.
t
Translate a CLI message key with no parameters.