New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

i18n_hover_keys

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

i18n_hover_keys

  • 0.1.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

I18nHoverKeys

A Rails extension that reveals translation keys when hovering over translated text, empowering QA teams and non-developers to identify the exact keys used in the interface.

Usage

Installation

  1. Add the gem to your Gemfile:

    gem 'i18n_hover_keys'
    
  2. Run bundle install to install the gem.

Usage in Views

Make sure you use the t (or translate) helper in your views for translations:

<%= t("general.information") %>

Include the toggle button in your layout or view where you want to toggle the feature:

<%= i18n_hover_toggle_button %>

Clicking this button enables hover mode:

  • Hover over any translated text, and a tooltip will show the corresponding translation key.
  • Click the button again to disable hover mode.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/eric-khoury/i18n_hover_keys.

License

The gem is available as open source under the terms of the MIT License.

FAQs

Package last updated on 19 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc