Contents

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 array $jsonLines

jsonLines maps a locale to programmatically-registered JSON translation lines

Show inherited protected properties

Inherited Protected Properties

  • $files - The filesystem instance. (defined in Illuminate\Translation\FileLoader)
  • $paths - The default paths for the loader. (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

public addJsonLines()

public addJsonLines($locale, $lines): void 

addJsonLines registers JSON translation lines for a locale from a non-file source

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)
  • addPath() - Add a new path 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)
  • paths() - Get an array of all the registered paths to translation files. (defined in Illuminate\Translation\FileLoader)

Protected Methods

protected loadJsonPaths()

protected loadJsonPaths($locale): void

loadJsonPaths returns the JSON translations for a locale

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

  • isUnsafePathSegment() - Determine if the given value is unsafe to use as part of a translation file path. (defined in Illuminate\Translation\FileLoader)
  • loadNamespaced() - Load a namespaced translation group. (defined in Illuminate\Translation\FileLoader)
  • loadPaths() - Load a locale from a given path. (defined in Illuminate\Translation\FileLoader)