Skip to main content

Crate rigsql_i18n

Crate rigsql_i18n 

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.