Skip to main content

Module translation

Module translation 

Source

Structs§

FluentArgs
Fluent messages can use arguments in order to programmatically add values to a translated string. For instance, in a localized application you may wish to display a user’s email count. This could be done with the following message.

Functions§

format_diag_message
Convert a DiagMessage to a string
format_diag_messages
Convert DiagMessages to a string
to_fluent_args
Convert diagnostic arguments (a rustc internal type that exists to implement Encodable/Decodable) into FluentArgs which is necessary to perform translation.