public function cacheTranslation($key, $value, $locale)
{
list($group, $transKey) = self::groupKeyList($key);
if ($group) {
if (!array_key_exists($group, $this->cache())) {
$this->cache[$group] = [];
}
$this->cache[$group][$this->cacheKey($transKey, $locale)] = $value;
$this->cacheIsDirty = $this->persistentPrefix !== '';
}
}