Return the default locale.
@return string
3262
public function getLocale() {
		if($this->locale === null)
			$this->locale = $this->getDefinition()->getEntityManager()->getDefaultLocale();
		return $this->locale;
	}
739322
public function getLanguage()
    {
        if ($this->project->getEmailMultiLanguage() && $this->language) {
            return $this->language;
        } else {
            return $this->project->getLocaleDefault();
        }
    }
782513
protected function getLanguage()
    {
        $output = [];
        // Get the language that be for default.
        $default_id = $this->languageManager->getDefaultLanguage()->getId();
        foreach ($this->languageManager->getLanguages() as $key => $value) {
            if ($default_id == $key) {
                $output[] = '';
            } else {
                $output[] = 'language.' . $value->getId();
            }
        }
        return $output;
    }
956361
public static function get_locale()
    {
        if (!self::$current_locale) {
            self::$current_locale = i18n::config()->uninherited('default_locale');
        }
        return self::$current_locale;
    }
451078
public function getLocale()
    {
        if ($this->locale instanceof Locale) {
            return $this->locale;
        }
        if (!isset($this->locales[$this->locale])) {
            $this->locale = 'en';
        }
        // lazy loading
        if (isset(static::$localeInstances[$this->locale])) {
            return static::$localeInstances[$this->locale];
        }
        return static::$localeInstances[$this->locale] = new $this->locales[$this->locale];
    }
36309
public function getDefaultCollation()
    {
        $collation = $this->config->get('database.preferred_collation');
        $collation = $this->normalizeCollation($collation);

        return $collation;
    }
584248
public static function getDefaultLanguage()
    {
        if (!is_null(self::$defaultLanguage)) {
            return self::$defaultLanguage;
        }

        if (!file_exists(self::$defaultLanguageFile)) {
            throw new \LogicException('Default language file '.self::$defaultLanguageFile.' does not exist');
        }

        self::$defaultLanguage = file_get_contents(self::$defaultLanguageFile);
        return self::$defaultLanguage;
    }
1315151
def get_locale ():
    """"""
    try:
        loc, encoding = locale.getdefaultlocale()
    except ValueError:
        # locale configuration is broken - ignore that
        loc, encoding = None, None
    if loc is None:
        loc = "C"
    else:
        loc = norm_locale(loc)
    if encoding is None:
        encoding = "ascii"
    return (loc, encoding)
1134201
public function get(): Locale
    {
        $locale = $this->originalLocale;

        $convert_locales = $this->config->get('convert_locales');
        $conversions = $this->config->get('convert_locales_to', []);

        if ('auto' === $convert_locales) {
            $locale = isset($conversions[$locale->get()])
                ? Locale::from($conversions[$locale->get()])
                : $locale->withoutRegion();
        } elseif (true === $convert_locales && isset($conversions[$locale->get()])) {
            $locale = Locale::from($conversions[$locale->get()]);
        }

        return $locale;
    }
284835
public Locale getFallbackLocale() {

		Locale locale = null;
		if (this.fallbackToSystemLocale) {
			locale = Locale.getDefault();
		} else {
			locale = new Locale("", "");
		}

		return locale;
	}
162057
public function locale()
    {
        $accept_language = $this->getHeader('accept_language');

        $tmp = explode(';', $accept_language)[0];

        preg_match('/^([a-z]+(?:-|_)?[a-z]+)/i', $tmp, $match);

        return end($match);
    }
408928
public static function getDefaultLocale() {
        // Try configured default first
        if (isset(Zend_Registry::get('config')->resources->locale->default)) {
            return Zend_Registry::get('config')->resources->locale->default;
        }
        // See if Zend_Locale might know the default
        if (!Zend_Registry::isRegistered('Zend_Locale')) {
            throw new Garp_I18n_Exception('Zend_Locale is not registered in Zend_Registry.');
        }
        $locale = Zend_Registry::get('Zend_Locale');
        $default = $locale->getDefault();
        if ($default) {
            $keys = array_keys($default);
            $default = current($keys);
        }
        return $default;
    }
290389
public function getLocale()
	{
		if (!$this->locale) {
            $locale = self::getStaticLocale();
            if (!$locale) {
                $locale = StdLocale::getDefault();
            }

            $this->setLocale($locale);
		}
		
		return $this->locale;
	}
999759
protected function getLang()
    {
        if (null === $this->lang) {
            $this->lang = $this->getSession() ? $this->getSession()->getLang(true) : $this->lang = Lang::getDefaultLanguage();
        }

        return $this->lang;
    }
1007094
public static function getDefault()
    {
        if (static::$_default != null) {
            return static::$_default;
        }

        // check if running into laravel context
        if (Context::checkLaravel()) {
            static::$_default = new self(['socket' => 'Laravel']);

            return static::$_default;
        }

        // check if registered container
        if (Context::checkContainer()) {
            return Context::getContainerDatabase();
        }
    }
616667
function defaultLocale() {
		var sLocale;
		// use the current session locale, if available
		if (window.sap && window.sap.ui && sap.ui.getCore) {
			sLocale = sap.ui.getCore().getConfiguration().getLanguage();
			sLocale = normalize(sLocale);
		}
		// last fallback is english if no or no valid locale is given
		return sLocale || "en";
	}
771034
public function activeLocale()
    {
        $active = $this->getCore()->session()->get(static::ACTIVE_LOCALE_SESSION_KEY);

        if ($active && in_array($active, $this->availableLocales())) {
            return $active;
        }

        return $this->defaultLocale();
    }