pub fn try_get_text_from_language(
        &mut self,
        lang: &str,
        text: &str,
    ) -> anyhow::Result<Option<Value>> {
        Ok(self.try_get_language(lang)?.try_get_text(text))
    }
/// Get a text of a specific language.
///
/// # Example
/// ```rust, ignore
/// use languages_rs::{Config, Languages};
///
/// let mut config = Config::default().unwrap();
/// assert!(config.add_language(String::from("en")).is_ok());
///
/// let mut texts = Languages::new(&config);
///
/// let message = texts.try_get_text_from_language("en", "message");
/// assert!(message.is_ok());
/// assert_eq!(message.unwrap(), Some(Value::String(String::from("Hi"))));
/// ```
Get a text of a specific language.
Get a text of a specific language .
pub fn try_get_text_from_language(
        &mut self,
        lang: &str,
        text: &str,
    ) -> anyhow::Result<Option<Value>> {
        Ok(self.try_get_language(lang)?.try_get_text(text))
    }
pub fn try_get_text_from_language ( & mut self , lang : & str , text : & str , ) -> anyhow :: Result < Option < Value > > { Ok ( self . try_get_language ( lang ) ? . try_get_text ( text ) ) }
Get a text of a specific language.
Get a text of a specific language .
&mut self
lang
&str
text
&str
&mut self
lang
&str
text
&str
example
```rust, ignore
use languages_rs::{Config, Languages}.

let mut config = Config::default().unwrap();
assert!(config.add_language(String::from("en")).is_ok()).

let mut texts = Languages::new(&config).

let message = texts.try_get_text_from_language("en", "message");
assert!(message.is_ok());
assert_eq!(message.unwrap(), Some(Value::String(String::from("Hi"))));
```
` ` ` rust ignore use languages_rs :: { Config Languages } . let mut config = Config :: default () . unwrap () ; assert! ( config . add_language ( String :: from ( " en " )) . is_ok () ) . let mut texts = Languages :: new ( &config ) . let message = texts . try_get_text_from_language ( " en " " message " ) ; assert! ( message . is_ok () ) ; assert_eq! ( message . unwrap () Some ( Value :: String ( String :: from ( " Hi " )))) ; ` ` `