Skip to content

Commit

Permalink
Update fluent
Browse files Browse the repository at this point in the history
  • Loading branch information
r-ml committed May 11, 2021
1 parent 1bd2245 commit c644b22
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions druid/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ druid-derive = { version = "0.4.0", path = "../druid-derive" }

tracing = { version = "0.1.22" }
tracing-subscriber = { version = "0.2.15", features = ["fmt", "ansi"], default-features = false }
fluent-bundle = "0.12.0"
fluent-bundle = "0.15.1"
fluent-langneg = "0.13.0"
fluent-syntax = "0.9.3"
fluent-syntax = "0.11.0"
unic-langid = "0.9.0"
unicode-segmentation = "1.6.0"
xi-unicode = "0.3.0"
Expand Down
6 changes: 3 additions & 3 deletions druid/src/localization.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ impl BundleStack {
fn format_pattern(
&self,
id: &str,
pattern: &FluentPattern,
pattern: &FluentPattern<&str>,
args: Option<&FluentArgs>,
errors: &mut Vec<FluentError>,
) -> String {
Expand Down Expand Up @@ -154,7 +154,7 @@ impl ResourceManager {
debug!("resolved: {}", PrintLocales(resolved_locales.as_slice()));
let mut stack = Vec::new();
for locale in &resolved_locales {
let mut bundle = FluentBundle::new(&resolved_locales);
let mut bundle = FluentBundle::new(resolved_locales.clone());
for res_id in resource_ids {
let res = self.get_resource(&res_id, &locale.to_string());
bundle.add_resource(res).unwrap();
Expand Down Expand Up @@ -254,7 +254,7 @@ impl L10nManager {
let value = match self
.current_bundle
.get_message(key)
.and_then(|msg| msg.value)
.and_then(|msg| msg.value())
{
Some(v) => v,
None => return None,
Expand Down

0 comments on commit c644b22

Please sign in to comment.