Module: I18nFeedback::Widget
- Defined in:
- lib/i18n_feedback/widget.rb
Overview
Serves the self-contained browser widget. The JavaScript is plain ES (no framework, no build step) and styles itself inline, so it drops into any Rails app regardless of its CSS or JS setup. It is inlined into the page rather than served as a separate asset to avoid any dependency on the host's asset pipeline.
Constant Summary collapse
- SOURCE =
File.('../../app/assets/i18n_feedback/widget.js', __dir__)
- RTL_LANGUAGES =
Right-to-left scripts, so the popover renders mirrored for those locales. Matched on the language subtag, so region variants ("ar-EG") count too.
%w[ar arc ckb dv fa ha he ks ku ps sd ug ur yi].freeze