@@ -78,6 +78,14 @@ class Translator implements TranslatorInterface
$this->locale = $locale;
}
+ /**
+ * {@inheritdoc}
+ */
+ public function getLocale()
+ {
+ return $this->locale;
+ }
+
/**
* Sets the fallback locale.
*
@@ -49,4 +49,11 @@ interface TranslatorInterface
* @param string $locale The locale
*/
function setLocale($locale);
+ * Returns the current locale.
+ *
+ * @return stringThe locale
+ function getLocale();