@@ -18,6 +18,10 @@ |
||
18 | 18 | public $oldValue; |
19 | 19 | public $newValue; |
20 | 20 | |
21 | + /** |
|
22 | + * @param string $key |
|
23 | + * @param string $locale |
|
24 | + */ |
|
21 | 25 | public function __construct(Model $model, $key, $locale, $oldValue, $newValue) |
22 | 26 | { |
23 | 27 | $this->model = $model; |
@@ -141,6 +141,10 @@ |
||
141 | 141 | } |
142 | 142 | } |
143 | 143 | |
144 | + /** |
|
145 | + * @param string $key |
|
146 | + * @param string $locale |
|
147 | + */ |
|
144 | 148 | protected function normalizeLocale($key, $locale) |
145 | 149 | { |
146 | 150 | if (in_array($locale, $this->getTranslatedLocales($key))) { |