add findLocale() to public interface

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
pull/5623/head
Thomas Citharel 7 years ago committed by Georg Ehrke
parent abab7eb7f0
commit 7d8124ad66
No known key found for this signature in database
GPG Key ID: 9D98FD9380A1CB43
  1. 7
      lib/public/L10N/IFactory.php

@ -44,6 +44,13 @@ interface IFactory {
*/ */
public function findLanguage($app = null); public function findLanguage($app = null);
/**
* @param string|null $lang user language as default locale
* @return string locale If nothing works it returns 'en_US'
* @since 13.0.0
*/
public function findLocale($lang = null);
/** /**
* Find all available languages for an app * Find all available languages for an app
* *

Loading…
Cancel
Save