Skip to content

Commit

Permalink
Add fluent support
Browse files Browse the repository at this point in the history
  • Loading branch information
XAMPPRocky committed Jun 8, 2020
1 parent a9a3a2e commit e7e57d4
Show file tree
Hide file tree
Showing 4 changed files with 260 additions and 2 deletions.
241 changes: 239 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions components/config/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,10 @@ pub struct Config {
/// Description of the site
pub description: Option<String>,

/// The location of the fluent localisation files.
pub fluent_dir: String,
/// The location of the fluent localisation files.
pub shared_fluent_resources: Vec<PathBuf>,
/// The language used in the site. Defaults to "en"
pub default_language: String,
/// The list of supported languages outside of the default one
Expand Down Expand Up @@ -380,6 +384,8 @@ impl Default for Config {
theme: None,
highlight_code: false,
highlight_theme: "base16-ocean-dark".to_string(),
fluent_dir: String::new(),
shared_fluent_resources: Vec::new(),
default_language: "en".to_string(),
languages: Vec::new(),
generate_feed: false,
Expand Down
1 change: 1 addition & 0 deletions components/site/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ search = { path = "../search" }
imageproc = { path = "../imageproc" }
library = { path = "../library" }
link_checker = { path = "../link_checker" }
fluent-templates = { version = "0.5.4", features = ["tera"], default-features = false }

[dev-dependencies]
tempfile = "3"
Loading

0 comments on commit e7e57d4

Please sign in to comment.