public.php 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <?php
  2. /**
  3. * This file is part of the "laravel-lang/publisher" project.
  4. *
  5. * For the full copyright and license information, please view the LICENSE
  6. * file that was distributed with this source code.
  7. *
  8. * @author Andrey Helldar <helldar@dragon-code.pro>
  9. * @copyright 2023 Laravel Lang Team
  10. * @license MIT
  11. *
  12. * @see https://laravel-lang.com
  13. */
  14. declare(strict_types=1);
  15. use LaravelLang\Publisher\Constants\Locales;
  16. return [
  17. /*
  18. * Determines what type of files to use when updating language files.
  19. *
  20. * `true` means inline files will be used.
  21. * `false` means that default files will be used.
  22. *
  23. * For example, the difference between them can be seen here:
  24. *
  25. * The :attribute must be accepted. // default
  26. * This field must be accepted. // inline
  27. *
  28. * By default, `false`.
  29. */
  30. 'inline' => false,
  31. /*
  32. * Do arrays need to be aligned by keys before processing arrays?
  33. *
  34. * By default, true
  35. */
  36. 'align' => true,
  37. /*
  38. * This option determines the mechanism for converting translation
  39. * keys into a typographic version.
  40. *
  41. * For example:
  42. * for `false`:
  43. * "It's super-configurable... you can even use additional extensions to expand its capabilities -- just like this one!"
  44. * for `true`:
  45. * “It’s super-configurable… you can even use additional extensions to expand its capabilities – just like this one!”
  46. *
  47. * By default, false
  48. */
  49. 'smart_punctuation' => [
  50. 'enable' => false,
  51. 'common' => [
  52. 'double_quote_opener' => '“',
  53. 'double_quote_closer' => '”',
  54. 'single_quote_opener' => '‘',
  55. 'single_quote_closer' => '’',
  56. ],
  57. 'locales' => [
  58. Locales::FRENCH->value => [
  59. 'double_quote_opener' => '«&nbsp;',
  60. 'double_quote_closer' => '&nbsp;»',
  61. 'single_quote_opener' => '‘',
  62. 'single_quote_closer' => '’',
  63. ],
  64. Locales::RUSSIAN->value => [
  65. 'double_quote_opener' => '«',
  66. 'double_quote_closer' => '»',
  67. 'single_quote_opener' => '‘',
  68. 'single_quote_closer' => '’',
  69. ],
  70. Locales::UKRAINIAN->value => [
  71. 'double_quote_opener' => '«',
  72. 'double_quote_closer' => '»',
  73. 'single_quote_opener' => '‘',
  74. 'single_quote_closer' => '’',
  75. ],
  76. Locales::BELARUSIAN->value => [
  77. 'double_quote_opener' => '«',
  78. 'double_quote_closer' => '»',
  79. 'single_quote_opener' => '‘',
  80. 'single_quote_closer' => '’',
  81. ],
  82. ],
  83. ],
  84. /*
  85. * The language codes chosen for the files in this repository may not
  86. * match the preferences for your project.
  87. *
  88. * Specify here mappings of localizations with your project.
  89. */
  90. 'aliases' => [
  91. // \LaravelLang\Publisher\Constants\Locales::GERMAN->value => 'de-DE',
  92. //
  93. // \LaravelLang\Publisher\Constants\Locales::GERMAN_SWITZERLAND->value => 'de-CH',
  94. ],
  95. ];