src/helpers.php
/**
     * Resolve a translation string or Gloss instance.
     *
     * @param string|array|null $key
     * @param array|callable|null $replace
     * @param string|null $locale
     * @return void|string|null|\Lean\Gloss\GlossTranslator
     */
Resolve a translation string or Gloss instance.
Resolve a translation string or Gloss instance .
function gloss($key = null, $replace = null, string $locale = null)
    {
        if (is_array($key)) {
            [$overrides, $condition] = [$key, $replace];
            Gloss::values($overrides, $condition);
            return;
        }
        if (is_string($key)) {
            return Gloss::get($key, (array) $replace, $locale);
        }
        return Gloss::getFacadeRoot();
    }
function gloss ( $ key = null , $ replace = null , string $ locale = null ) { if ( is_array ( $ key ) ) { [ $ overrides , $ condition ] = [ $ key , $ replace ] ; Gloss :: values ( $ overrides , $ condition ) ; return ; } if ( is_string ( $ key ) ) { return Gloss :: get ( $ key , ( array ) $ replace , $ locale ) ; } return Gloss :: getFacadeRoot ( ) ; }
Resolve a translation string or Gloss instance.
Resolve a translation string or Gloss instance .