October\Rain\Translation\FileLoader

Overview

FileLoader specifies a custom location for overriding translations

Extends
  • Illuminate\Translation\FileLoader
Implements
  • Illuminate\Contracts\Translation\Loader

Protected Properties

protected string $path

path is a single path for the loader.

protected array $paths

paths are used by default for the loader.

Show inherited protected properties

Inherited Protected Properties

  • $files - The filesystem instance. (defined in Illuminate\Translation\FileLoader)
  • $jsonPaths - All of the registered paths to JSON translation files. (defined in Illuminate\Translation\FileLoader)
  • $hints - All of the namespace hints. (defined in Illuminate\Translation\FileLoader)

Public Methods

Show inherited public methods

Inherited Public Methods

  • __construct() - Create a new file loader instance. (defined in Illuminate\Translation\FileLoader)
  • addJsonPath() - Add a new JSON path to the loader. (defined in Illuminate\Translation\FileLoader)
  • addNamespace() - Add a new namespace to the loader. (defined in Illuminate\Translation\FileLoader)
  • jsonPaths() - Get an array of all the registered paths to JSON translation files. (defined in Illuminate\Translation\FileLoader)
  • load() - Load the messages for the given locale. (defined in Illuminate\Translation\FileLoader)
  • namespaces() - Get an array of all the registered namespaces. (defined in Illuminate\Translation\FileLoader)

Protected Methods

protected loadNamespaceOverrides()

protected loadNamespaceOverrides($lines, $locale, $group, $namespace): void

loadNamespaceOverrides loads a local namespaced translation group for overrides

Show inherited protected methods

Inherited Protected Methods

  • loadJsonPaths() - Load a locale from the given JSON file path. (defined in Illuminate\Translation\FileLoader)
  • loadNamespaced() - Load a namespaced translation group. (defined in Illuminate\Translation\FileLoader)
  • loadPath() - Load a locale from a given path. (defined in Illuminate\Translation\FileLoader)