modify translations 🤦

This commit is contained in:
2023-11-28 17:31:52 +05:00
parent 45b42d47e8
commit af9afd5113
28 changed files with 3240 additions and 956 deletions

View File

@@ -83,13 +83,12 @@ return [
|
*/
'locale' => 'en',
'locale' => 'tk',
'locales' => [
'tk' => 'Türkmen',
'ru' => 'Русский',
'en' => 'English',
// 'es' => 'Espanyol',
],
/*

98
config/localization.php Normal file
View 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`:
* “Its 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' => '«&nbsp;',
'double_quote_closer' => '&nbsp;»',
'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' => '',
],
],
],
];