modify translations 🤦
This commit is contained in:
98
config/localization.php
Normal file
98
config/localization.php
Normal file
@@ -0,0 +1,98 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* This file is part of the "laravel-lang/publisher" project.
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*
|
||||
* @author Andrey Helldar <helldar@dragon-code.pro>
|
||||
* @copyright 2023 Laravel Lang Team
|
||||
* @license MIT
|
||||
*
|
||||
* @see https://laravel-lang.com
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
use LaravelLang\Locales\Enums\Locale;
|
||||
|
||||
return [
|
||||
/*
|
||||
* Determines what type of files to use when updating language files.
|
||||
*
|
||||
* `true` means inline files will be used.
|
||||
* `false` means that default files will be used.
|
||||
*
|
||||
* For example, the difference between them can be seen here:
|
||||
*
|
||||
* The :attribute must be accepted. // default
|
||||
* This field must be accepted. // inline
|
||||
*
|
||||
* By default, `false`.
|
||||
*/
|
||||
|
||||
'inline' => (bool) env('LANG_PUBLISHER_INLINE', false),
|
||||
|
||||
/*
|
||||
* Do arrays need to be aligned by keys before processing arrays?
|
||||
*
|
||||
* By default, true
|
||||
*/
|
||||
|
||||
'align' => (bool) env('LANG_PUBLISHER_ALIGN', true),
|
||||
|
||||
/*
|
||||
* This option determines the mechanism for converting translation
|
||||
* keys into a typographic version.
|
||||
*
|
||||
* For example:
|
||||
* for `false`:
|
||||
* "It's super-configurable... you can even use additional extensions to expand its capabilities -- just like this one!"
|
||||
* for `true`:
|
||||
* “It’s super-configurable… you can even use additional extensions to expand its capabilities – just like this one!”
|
||||
*
|
||||
* By default, false
|
||||
*/
|
||||
|
||||
'smart_punctuation' => [
|
||||
'enable' => false,
|
||||
|
||||
'common' => [
|
||||
'double_quote_opener' => '“',
|
||||
'double_quote_closer' => '”',
|
||||
'single_quote_opener' => '‘',
|
||||
'single_quote_closer' => '’',
|
||||
],
|
||||
|
||||
'locales' => [
|
||||
Locale::French->value => [
|
||||
'double_quote_opener' => '« ',
|
||||
'double_quote_closer' => ' »',
|
||||
'single_quote_opener' => '‘',
|
||||
'single_quote_closer' => '’',
|
||||
],
|
||||
|
||||
Locale::Russian->value => [
|
||||
'double_quote_opener' => '«',
|
||||
'double_quote_closer' => '»',
|
||||
'single_quote_opener' => '‘',
|
||||
'single_quote_closer' => '’',
|
||||
],
|
||||
|
||||
Locale::Ukrainian->value => [
|
||||
'double_quote_opener' => '«',
|
||||
'double_quote_closer' => '»',
|
||||
'single_quote_opener' => '‘',
|
||||
'single_quote_closer' => '’',
|
||||
],
|
||||
|
||||
Locale::Belarusian->value => [
|
||||
'double_quote_opener' => '«',
|
||||
'double_quote_closer' => '»',
|
||||
'single_quote_opener' => '‘',
|
||||
'single_quote_closer' => '’',
|
||||
],
|
||||
],
|
||||
],
|
||||
];
|
||||
Reference in New Issue
Block a user