1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// This module file is controlled, because it's used as an external module as
// well

#[cfg(any(client, doc))]
mod client_translations_manager;
#[cfg(any(client, doc))]
mod locale_detector;
mod locales;
mod translations_manager;

#[cfg(any(client, doc))]
pub(crate) use client_translations_manager::ClientTranslationsManager;
#[cfg(any(client, doc))]
pub(crate) use locale_detector::detect_locale;
pub use locales::Locales;
pub use translations_manager::{
    FsTranslationsManager, TranslationsManager, TranslationsManagerError,
};

// Export the `translator` module from here as well
pub use crate::translator::*;

#[doc(hidden)]
/// The default translations directory when we're running with the `.perseus/`
/// support structure.
pub static DFLT_TRANSLATIONS_DIR: &str = "./translations";