Class: Spree::Admin::TranslationsController
- Inherits:
-
ResourceController
- Object
- BaseController
- BaseController
- ResourceController
- Spree::Admin::TranslationsController
- Defined in:
- app/controllers/spree/admin/translations_controller.rb
Instance Method Summary collapse
-
#normalized_locale(locale) ⇒ Object
Normalizes a locale string by replacing ‘-’ with ‘_’ and downcasing.
Methods inherited from ResourceController
belongs_to, #create, #destroy, #edit, #index, #new, #update
Methods included from TableConcern
#apply_table_sort, #custom_sort_active?, #process_table_query_state, #table, #table_key, #table_registered?
Methods included from BreadcrumbConcern
#add_breadcrumb_icon_instance_var
Instance Method Details
#normalized_locale(locale) ⇒ Object
Normalizes a locale string by replacing ‘-’ with ‘_’ and downcasing
10 11 12 |
# File 'app/controllers/spree/admin/translations_controller.rb', line 10 def normalized_locale(locale) locale.to_s.downcase.tr('-', '_') end |