Update 'build.rs'
This commit is contained in:
parent
9f36da7afe
commit
a8743a1d9c
2
build.rs
2
build.rs
|
@ -14,7 +14,7 @@ type Translations = HashMap<Key, HashMap<Locale, Value>>;
|
|||
|
||||
fn read_locales() -> Translations {
|
||||
let mut translations: Translations = HashMap::new();
|
||||
|
||||
dotenvy::dotenv().unwrap();
|
||||
let build_directory = std::env::var("PWD").unwrap();
|
||||
let locales = format!("{}/**/locales/**/*.json", build_directory);
|
||||
println!("Reading {}", &locales);
|
||||
|
|
Loading…
Reference in New Issue