Skip to content

Commit e6e3bab

Browse files
authored
Merge pull request #52 from RedMser/fix-int-formatting
Fix integer formatting breaking selectors
2 parents ced4c42 + dfbe01b commit e6e3bab

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

rust/src/fluent/translation.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use std::borrow::Cow;
2-
use fluent::types::{FluentNumber, FluentNumberOptions};
2+
use fluent::types::FluentNumber;
33
use fluent::{FluentArgs, FluentBundle, FluentError, FluentResource, FluentValue};
44
use godot::prelude::*;
55
use godot::classes::{ITranslation, ProjectSettings, RegEx, Translation};
@@ -176,9 +176,7 @@ impl TranslationFluent {
176176
},
177177
VariantType::INT => {
178178
let casted: i64 = input.to();
179-
let mut options = FluentNumberOptions::default();
180-
options.maximum_fraction_digits = Some(0);
181-
FluentValue::Number(FluentNumber::new(casted as f64, options))
179+
FluentValue::Number(FluentNumber::new(casted as f64, Default::default()))
182180
}
183181
VariantType::FLOAT => {
184182
let casted: f64 = input.to();

0 commit comments

Comments
 (0)