Route_translator

screenshot of Route_translator

Translate your rails app route to various languages without the hassle

Overview

RouteTranslator is a powerful gem designed for Ruby on Rails applications that simplifies the management of route translations. Originating from the popular translate_routes plugin by Raúl Murciano, this gem has been updated to be compatible with Rails versions 6.1, 7.x, and 8.0. Perfect for multi-lingual applications, RouteTranslator allows developers to easily integrate multi-language support into their routing system using a straightforward dictionary format.

Setting up RouteTranslator is quick and easy, making it an attractive option for developers looking to enhance their Rails applications with internationalization features. With just a few simple configurations in the routes.rb file and your locale files, you can have a fully localized routing system ready to go.

Features

  • Easy Integration: Quickly add RouteTranslator to your Rails application with a simple configuration in the Gemfile and run bundle install.
  • Localized Routing Blocks: Wrap specific groups of routes in localized blocks for easy translation management, offering clear and concise organization.
  • Fallback Language Management: In development, enjoy the default I18n configuration that doesn't utilize fallbacks, ensuring missing translations use the last segment of the translation key.
  • Dynamic Language Switching: Easily change the language and reload the appropriate route while staying on the same page using the provided code snippets.
  • Namespace Translation: Translate namespace routes with ease by wrapping them in localized blocks, making it straightforward to handle complex routing scenarios.
  • Customizable Configuration: Adjust various settings through initializers or environment-specific configuration files to tailor the gem to your project's needs.
  • No Inflections Supported: Currently, the gem does not support inflections, but there are workarounds available for developers needing this feature.