Skip to content

Commit

Permalink
[l10n] Fix annoying typo
Browse files Browse the repository at this point in the history
  • Loading branch information
cwfitzgerald committed Mar 9, 2020
1 parent b5fba74 commit 113289f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bve/src/l10n/current.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use crate::l10n::{BVELanguage, BVELocale};
use locale_config::LanguageRange;

#[must_use]
pub fn get_current_language() -> BVELocale {
pub fn get_current_locale() -> BVELocale {
let locale = locale_config::Locale::user_default();

// Look for the message language
Expand Down
2 changes: 1 addition & 1 deletion bve/src/l10n/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ mod current;
mod load;

pub static CURRENT_BVE_LOCALE: Lazy<RwLock<BVELocaleBundle>> =
Lazy::new(|| RwLock::new(load_locale_bundle(get_current_language())));
Lazy::new(|| RwLock::new(load_locale_bundle(get_current_locale())));
pub static ENGLISH_LOCALE: Lazy<BVELocaleBundle> =
Lazy::new(|| load_locale_bundle(BVELocale::from_language(BVELanguage::EN)));

Expand Down

0 comments on commit 113289f

Please sign in to comment.