FileLoader

 class Winter\Storm\Translation\FileLoader
extends Illuminate\Translation\FileLoader

Extends

Methods

protected loadNamespaceOverrides (array $lines, string $locale, string $group, string $namespace) : array

Load a local namespaced translation group for overrides.

This is an override from the base Laravel functionality that allows "xx-xx" locale format files as well as "xx_XX" locale format files. The "xx_XX" format is considered authorative.

Parameters
Property Description
$lines
array
$locale
string
$group
string
$namespace
string
Returns
array

protected loadPath (string $path, string $locale, string $group) : array

Load a locale from a given path.

This is an override from the base Laravel functionality that allows "xx-xx" locale format files as well as "xx_XX" locale format files. The "xx_XX" format is considered authorative.

Parameters
Property Description
$path
string
$locale
string
$group
string
Returns
array
Copyright © 2024 Winter CMS