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, orNoneif not found
Details:
- Tries locations in order:
- Development location:
CARGO_MANIFEST_DIR/config/locales(prioritized when running from source) - Installed location:
/usr/share/pacsea/locales
- Development location:
- Development location is checked first to allow working with repo files during development