diff options
author | Claire <claire.github-309c@sitedethib.com> | 2020-12-05 17:33:29 +0100 |
---|---|---|
committer | Claire <claire.github-309c@sitedethib.com> | 2020-12-05 17:33:37 +0100 |
commit | f8d867bac43e7e18d293ac32a9be597d1f46dce3 (patch) | |
tree | b3d950a01a8dee5403081f56cf0c6b0571954e90 /app/helpers | |
parent | 13df125b6c75923ccc21a5c57053e680cea75f38 (diff) | |
parent | 44d5c6bc8ffd92cd201380dabe35748e50b6af68 (diff) |
Merge branch 'master' into glitch-soc/merge-upstream
Conflicts: - `app/services/remove_status_service.rb`: Conflict caused by us having a distinc Direct timeline. Ported upstream changes. - `app/javascript/mastodon/features/compose/components/compose_form.js`: Conflict between glitch-soc's variable character limit and upstream refactoring that part of the code. Ported upstream changes.
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/application_helper.rb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 2936545a0..5a9496bd4 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -7,6 +7,13 @@ module ApplicationHelper follow ).freeze + RTL_LOCALES = %i( + ar + fa + he + ku + ).freeze + def active_nav_class(*paths) paths.any? { |path| current_page?(path) } ? 'active' : '' end @@ -44,7 +51,7 @@ module ApplicationHelper end def locale_direction - if [:ar, :fa, :he].include?(I18n.locale) + if RTL_LOCALES.include?(I18n.locale) 'rtl' else 'ltr' |