Converted tabs to spaces and fixed tests

This commit is contained in:
ElBe
2023-09-14 17:08:58 +02:00
parent 49a2b13657
commit 66363879c8
3 changed files with 82 additions and 81 deletions
+4 -4
View File
@@ -1,5 +1,5 @@
<h1 align="center">
localizer-rs
localizer-rs
</h1>
<h3 align="center">
Localizer helps localize (translate) your rust applications using json files.
@@ -67,7 +67,7 @@ With the following `en.json` file.
```json
{
"error": "{{color.red}}{{bold}}Error:{{end}} Something went wrong: {{details}}."
"error": "{{color.red}}{{bold}}Error:{{end}} Something went wrong: {{details}}."
}
```
@@ -79,9 +79,9 @@ And the following rust code.
use localizer_rs;
fn main() {
let config: localizer_rs::Config = localizer_rs::Config::new("translations", "en");
let config: localizer_rs::Config = localizer_rs::Config::new("translations", "en");
println!("{:}", config.t("error", vec![("details", "Path not found")]));
println!("{:}", config.t("error", vec![("details", "Path not found")]));
}
```