Skip to content

Commit 60f151d

Browse files
committed
Add EN translations for nav item route name options
1 parent a1451e6 commit 60f151d

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

app/helpers/better_together/navigation_items_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def render_platform_header_nav_items
109109

110110
def route_names_for_select(nav_item = nil)
111111
options_for_select(
112-
BetterTogether::NavigationItem.route_names.map { |name, route| [I18n.t("route_names.#{name}"), route] },
112+
BetterTogether::NavigationItem.route_names.map { |name, route| [I18n.t("better_together.navigation_items.route_names.#{name}"), route] },
113113
(nav_item ? nav_item.route_name : nil)
114114
)
115115
end

config/locales/en.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,24 @@ en:
7878
new_message_notifier:
7979
new_message: "New Message"
8080
from_html: "From: %{sender}"
81+
navigation_items:
82+
route_names:
83+
content_blocks: "Content Blocks"
84+
communities: "Communities"
85+
geography_continents: "Continents"
86+
geography_countries: "Countries"
87+
geography_states: "States"
88+
geography_regions: "Regions"
89+
geography_settlements: "Settlements"
90+
host_dashboard: "Host Dashboard"
91+
metrics_reports: "Metrics Reports"
92+
navigation_areas: "Navigation Areas"
93+
pages: "Pages"
94+
people: "People"
95+
platforms: "Platforms"
96+
resource_permissions: "Resource Permissions"
97+
roles: "Roles"
98+
users: "Users"
8199
notifications:
82100
index:
83101
notifications: "Notifications"

0 commit comments

Comments
 (0)