You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: lib.rs
    path of file: ./repos/HarTex/localization/hartex-localization-loader/src
    
    the code of the file until where you have to start completion: /*
 * SPDX-License-Identifier: AGPL-3.0-only
 *
 * This file is part of HarTex.
 *
 * HarTex
 * Copyright (c) 2021-2024 HarTex Project Develope
    
    pub fn load_localizations() -> miette::Result<Self> {
        let base_path = env::base_path();
        let mut bundles = HashMap::new();

        for result in WalkDir::new(base_path.clone()) {
            let entry_handle = result.into_diagnostic()?;

            let meta = entry_handle.file_type();
            if !meta.is_dir() {
                continue;
            }

            let file_name = entry_handle.file_name();
            let lang_name = file_name.to_string_lossy();

            let Ok(lang_ident) = lang_name.parse::<LanguageIdentifier>() else {
                continue;
            };

            let Ok(bundle) = load_bundle(base_path.clone(), lang_ident) else {
                continue;
            };
            bundles.insert(lang_name.to_string(), bundle);
        }

        Ok(Self { bundles })
    }