[][src]Function loon::translate

pub fn translate<'a, I: Into<Option<Opts<'a>>>>(
    key: &str,
    opts: I
) -> Result<String>

Translate a message using the global configuration.

If you have not set_config, this will look for translation files in config/locales.