aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/L10N/IFactory.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/public/L10N/IFactory.php')
-rw-r--r--lib/public/L10N/IFactory.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/public/L10N/IFactory.php b/lib/public/L10N/IFactory.php
index 1bc231e4e2e..a11977f8c03 100644
--- a/lib/public/L10N/IFactory.php
+++ b/lib/public/L10N/IFactory.php
@@ -54,6 +54,16 @@ interface IFactory {
public function findLocale($lang = null);
/**
+ * find the matching lang from the locale
+ *
+ * @param string $app
+ * @param string $locale
+ * @return null|string
+ * @since 14.0.1
+ */
+ public function findLanguageFromLocale(string $app = 'core', string $locale = null);
+
+ /**
* Find all available languages for an app
*
* @param string|null $app App id or null for core