fluent-testing 0.0.5

A collection of mock scenarios for testing components of Project Fluent, a localization system designed to unleash the entire expressive power of natural language translations.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use super::structs::*;
use crate::queries;

pub fn get_scenario() -> Scenario {
    Scenario::new(
        "simple",
        vec![FileSource::new(
            "browser",
            "browser/{locale}/",
            vec!["en-US", "pl"],
        )],
        vec!["en-US"],
        vec!["browser/sanitize.ftl"],
        queries![("history-section-label", "History")],
    )
}