lang-publisher.php 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <?php
  2. use Helldar\PrettyArray\Contracts\Caseable;
  3. return [
  4. /*
  5. * Determines what type of files to use when updating language files.
  6. *
  7. * `true` means inline files will be used.
  8. * `false` means that default files will be used.
  9. *
  10. * The difference between them can be seen here:
  11. * @see https://github.com/Laravel-Lang/lang/blob/master/script/en/validation.php
  12. * @see https://github.com/Laravel-Lang/lang/blob/master/script/en/validation-inline.php
  13. *
  14. * By default, `false`.
  15. */
  16. 'inline' => false,
  17. /*
  18. * Do arrays need to be aligned by keys before processing arrays?
  19. *
  20. * By default, true
  21. */
  22. 'alignment' => true,
  23. /*
  24. * Key exclusion when combining.
  25. */
  26. 'exclude' => [
  27. // 'auth' => ['throttle'],
  28. // 'pagination' => ['previous'],
  29. // 'passwords' => ['reset', 'throttled', 'user'],
  30. // 'Confirm Password',
  31. ],
  32. /*
  33. * List of ignored localizations.
  34. */
  35. 'ignore' => [
  36. // 'en',
  37. // Helldar\LaravelLangPublisher\Constants\Locales::ALBANIAN,
  38. ],
  39. /*
  40. * Change key case.
  41. *
  42. * Available values:
  43. *
  44. * Helldar\PrettyArray\Contracts\Caseable::NO_CASE - Case does not change
  45. * Helldar\PrettyArray\Contracts\Caseable::CAMEL_CASE - camelCase
  46. * Helldar\PrettyArray\Contracts\Caseable::KEBAB_CASE - kebab-case
  47. * Helldar\PrettyArray\Contracts\Caseable::PASCAL_CASE - PascalCase
  48. * Helldar\PrettyArray\Contracts\Caseable::SNAKE_CASE - snake_case
  49. *
  50. * By default, Caseable::NO_CASE
  51. */
  52. 'case' => interface_exists(Caseable::class) ? Caseable::NO_CASE : 0,
  53. ];