diff -r 15a1a28f609a -r 8b3d57a519eb web/Translator.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/Translator.php Mon Jun 18 23:15:34 2018 +0200 @@ -0,0 +1,29 @@ +translate($message, 'default'); + } + + public function addTranslation($messages, $locale) { + + if (! isset($this->messages['default'])) { + $this->messages['default'] = []; + } + $textDomain = new TextDomain($messages); + if (isset($this->messages['default'][$locale])) { + $this->messages['default'][$locale]->merge($textDomain); + } else { + $this->messages['default'][$locale] = $textDomain; + } + } + +} +