pub fn plain_with(text: &str, variables: &[&str]) -> EnglishExpand description
Plain text in which the placeables of variables ({ $name } or
{$name}) stay placeables: English::Plain when it has none, else
an English::Pattern with every other brace escaped.
use egui_pop_i18n::extract::{English, plain_with};
assert_eq!(
plain_with("About { $application } {x}", &["application"]),
English::Pattern("About { $application } {\"{\"}x{\"}\"}".into())
);
assert_eq!(plain_with("Use { $other }", &["application"]), English::Plain("Use { $other }".into()));