refactor: update localization files

Note: This commit removes previous translations, which means the app will now be untranslated.

Reasons for this include low translation quality, and the lack of a good quality assurance process in place.
This commit is contained in:
2022-03-31 15:05:48 +01:00
committed by Miguel Nogueira
parent 6338b3ef8b
commit 9e8ab2383e
28 changed files with 2210 additions and 2655 deletions

51
config/localizator.php Normal file
View File

@@ -0,0 +1,51 @@
<?php
return [
/**
* Localize types of translation strings.
*/
'localize' => [
/**
* Short keys. This is the default for Laravel.
* They are stored in PHP files inside folders name by their locale code.
* Laravel comes with default: auth.php, pagination.php, passwords.php and validation.php
*/
'default' => true,
/**
* Translations strings as key.
* They are stored in JSON file for each locale.
*/
'json' => true,
],
/**
* Search criteria for files.
*/
'search' => [
/**
* Directories which should be looked inside.
*/
'dirs' => ['resources/views'],
/**
* Patterns by which files should be queried.
* The values can be a regular expression, glob, or just a string.
*/
'patterns' => ['*.php'],
/**
* Functions that the strings will be extracted from.
* Add here any custom defined functions.
* NOTE: The translation string should always be the first argument.
*/
'functions' => ['__', 'trans', '@lang']
],
/**
* Should the localize command sort extracted strings alphabetically?
*/
'sort' => true,
];