File tree Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -88,6 +88,20 @@ public function getCatalogue($locale = null)
88
88
return $ this ->translator ->getCatalogue ($ locale );
89
89
}
90
90
91
+ /**
92
+ * Gets the fallback locales.
93
+ *
94
+ * @return array $locales The fallback locales
95
+ */
96
+ public function getFallbackLocales ()
97
+ {
98
+ if ($ this ->translator instanceof Translator) {
99
+ return $ this ->translator ->getFallbackLocales ();
100
+ }
101
+
102
+ return array ();
103
+ }
104
+
91
105
/**
92
106
* Passes through all unknown calls onto the translator object.
93
107
*/
Original file line number Diff line number Diff line change @@ -88,6 +88,20 @@ public function getCatalogue($locale = null)
88
88
return $ this ->translator ->getCatalogue ($ locale );
89
89
}
90
90
91
+ /**
92
+ * Gets the fallback locales.
93
+ *
94
+ * @return array $locales The fallback locales
95
+ */
96
+ public function getFallbackLocales ()
97
+ {
98
+ if ($ this ->translator instanceof Translator) {
99
+ return $ this ->translator ->getFallbackLocales ();
100
+ }
101
+
102
+ return array ();
103
+ }
104
+
91
105
/**
92
106
* Passes through all unknown calls onto the translator object.
93
107
*/
You can’t perform that action at this time.
0 commit comments