Update 'build.rs'

This commit is contained in:
franklinblanco 2023-04-26 22:31:03 +00:00
parent a8743a1d9c
commit 2a79df726c

View File

@ -14,8 +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 build_directory = "/Users/franklinblanco/developer/repos/blanco-lorenzo/bl-frontend";
let locales = format!("{}/**/locales/**/*.json", build_directory);
println!("Reading {}", &locales);