Skip to content

dhanajit96/marathi_typing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Requirements

  • Rails 6.1+
  • Stimulus.js (part of Hotwire)

If you’re using Rails 7+, Stimulus is already included. If not, install it using:

bin/rails stimulus:install

Install:

Add the following line to your application's Gemfile:

gem 'marathi_typing', '~> 0.2.1'

And then execute:

bundle install

Or install it yourself as:

gem install marathi_typing

then use command

bin/rails generate marathi_typing:install

Above command will generate a marathi_typing_controller.js file

Add class and data-controller and data-marathi-typing-target="input" to the input where you want to implement marathi typing

<input type="text"
       class="marathi-typing"
       data-controller="marathi-typing"
       data-marathi-typing-target="input"
       placeholder="Type in English..." />

The controller will:

  • Fetch transliterations from Google Input Tools

  • Show suggestions

  • Auto-replace the typed word with the selected suggestion

About

Enable Marathi transliteration typing with Stimulus

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages