Function load_resources_from_folder

Source
pub fn load_resources_from_folder(path: PathBuf) -> Result<Vec<Resource>>
Expand description

Load all fluent resource files from a directory and returns them. Only files with an .ftl extension will be loaded, does not load files from subfolders

Generally you don’t want to be using this but rather use the load function to get an LocalizationHolder with localizations for all your languages

However this is public for the purposes of generating bindings through the … crate, if if you want to do it yourself

§Arguments

  • path - A PathBuf to the folder to load the resources from