added chinese translations (#1310)

This commit is contained in:
Kevin Papst
2019-12-09 12:56:38 +01:00
committed by GitHub
parent d62e1c4468
commit 261b4646e4
34 changed files with 1836 additions and 72 deletions

View File

@@ -11,20 +11,17 @@ namespace App\Configuration;
use App\Utils\MomentFormatConverter;
class LanguageFormattings
final class LanguageFormattings
{
/**
* @var array
*/
protected $settings;
private $settings;
/**
* @var MomentFormatConverter
*/
protected $momentFormatter;
private $momentFormatter;
/**
* @param array $languageSettings
*/
public function __construct(array $languageSettings)
{
$this->settings = $languageSettings;
@@ -145,7 +142,7 @@ class LanguageFormattings
* @param string $locale
* @return string
*/
protected function getConfig(string $key, string $locale): string
private function getConfig(string $key, string $locale): string
{
if (!isset($this->settings[$locale])) {
throw new \InvalidArgumentException(sprintf('Unknown locale given: %s', $locale));