find_locales_dir

Function find_locales_dir 

Source
pub fn find_locales_dir() -> Option<PathBuf>
Expand description

What: Find the locales directory in development and installed locations.

Output:

  • Some(PathBuf) pointing to the first existing locales directory found, or None if not found

Details:

  • Tries locations in order:
    1. Development location: CARGO_MANIFEST_DIR/config/locales (prioritized when running from source)
    2. Installed location: /usr/share/pacsea/locales
  • Development location is checked first to allow working with repo files during development