Lang.php 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. namespace Illuminate\Support\Facades;
  3. /**
  4. * @method static bool hasForLocale(string $key, string|null $locale = null)
  5. * @method static bool has(string $key, string|null $locale = null, bool $fallback = true)
  6. * @method static string|array get(string $key, array $replace = [], string|null $locale = null, bool $fallback = true)
  7. * @method static string choice(string $key, \Countable|int|float|array $number, array $replace = [], string|null $locale = null)
  8. * @method static void addLines(array $lines, string $locale, string $namespace = '*')
  9. * @method static void load(string $namespace, string $group, string $locale)
  10. * @method static \Illuminate\Translation\Translator handleMissingKeysUsing(callable|null $callback)
  11. * @method static void addNamespace(string $namespace, string $hint)
  12. * @method static void addJsonPath(string $path)
  13. * @method static array parseKey(string $key)
  14. * @method static void determineLocalesUsing(callable $callback)
  15. * @method static \Illuminate\Translation\MessageSelector getSelector()
  16. * @method static void setSelector(\Illuminate\Translation\MessageSelector $selector)
  17. * @method static \Illuminate\Contracts\Translation\Loader getLoader()
  18. * @method static string locale()
  19. * @method static string getLocale()
  20. * @method static void setLocale(string $locale)
  21. * @method static string getFallback()
  22. * @method static void setFallback(string $fallback)
  23. * @method static void setLoaded(array $loaded)
  24. * @method static void stringable(callable|string $class, callable|null $handler = null)
  25. * @method static void setParsedKey(string $key, array $parsed)
  26. * @method static void flushParsedKeys()
  27. * @method static void macro(string $name, object|callable $macro)
  28. * @method static void mixin(object $mixin, bool $replace = true)
  29. * @method static bool hasMacro(string $name)
  30. * @method static void flushMacros()
  31. *
  32. * @see \Illuminate\Translation\Translator
  33. */
  34. class Lang extends Facade
  35. {
  36. /**
  37. * Get the registered name of the component.
  38. *
  39. * @return string
  40. */
  41. protected static function getFacadeAccessor()
  42. {
  43. return 'translator';
  44. }
  45. }