aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/L10N
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2024-09-18 11:13:30 +0200
committerJoas Schilling <coding@schilljs.com>2024-09-23 17:00:07 +0200
commit82566c5479b7cf3374501a1e6b113680ae75afee (patch)
tree697896f4b5d64a1a1b77e5a50a13a4274c793e30 /lib/private/L10N
parent242f89afb3312f04bbbf7951d9a71092f15978a1 (diff)
downloadnextcloud-server-82566c5479b7cf3374501a1e6b113680ae75afee.tar.gz
nextcloud-server-82566c5479b7cf3374501a1e6b113680ae75afee.zip
fix(rtl): Make clear that the direction is based on languagefeat/31420/bidi-backend-support
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/L10N')
-rw-r--r--lib/private/L10N/Factory.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/private/L10N/Factory.php b/lib/private/L10N/Factory.php
index ea6360efdf0..a519ae7e761 100644
--- a/lib/private/L10N/Factory.php
+++ b/lib/private/L10N/Factory.php
@@ -377,9 +377,8 @@ class Factory implements IFactory {
return in_array($lang, $languages);
}
-
- public function getLanguageDirectionFromLocale(string $locale): string {
- if (in_array($locale, self::RTL_LANGUAGES)) {
+ public function getLanguageDirection(string $language): string {
+ if (in_array($language, self::RTL_LANGUAGES, true)) {
return 'rtl';
}