Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mslinn/jekyll_google_translate
Adds a Google Translate widget to a web page
https://github.com/mslinn/jekyll_google_translate
google-translate jekyll jekyll-tag
Last synced: 3 months ago
JSON representation
Adds a Google Translate widget to a web page
- Host: GitHub
- URL: https://github.com/mslinn/jekyll_google_translate
- Owner: mslinn
- License: mit
- Created: 2023-12-27T14:31:18.000Z (almost 1 year ago)
- Default Branch: master
- Last Pushed: 2024-07-26T11:15:13.000Z (5 months ago)
- Last Synced: 2024-09-26T17:46:07.886Z (3 months ago)
- Topics: google-translate, jekyll, jekyll-tag
- Language: Ruby
- Homepage: https://www.mslinn.com/jekyll_plugins/index.html
- Size: 466 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# `Jekyll_google_translate` [![Gem Version](https://badge.fury.io/rb/jekyll_google_translate.svg)](https://badge.fury.io/rb/jekyll_google_translate)
Adds Google Translate to a web page.
## Installation
Add the following to your Jekyll website's `Gemfile`:
```ruby
group :jekyll_plugins do
gem 'jekyll_google_translate'
end
```And then execute:
```shell
$ bundle
```Copy `demo/assets/css/jekyll_google_translate.css` to your Jekyll web site's CSS directory,
and update your layout accordingly.## Usage
The {% google_translate_html %} tag must be called to insert HTML into the page,
then the {% google_translate_javascript %} tag must be called to insert Javascript into the page.
For example:```html
{% google_translate_html %}
{% google_translate_javascript %}```
The above is usually incorporated into a layout, for example, `_layouts/default.html`.
## Development
After checking out this git repository, install dependencies by typing:
```shell
$ bin/setup
```You should do the above before running Visual Studio Code.
### Run the Tests
```shell
$ bundle exec rake test
```### Interactive Session
The following will allow you to experiment:
```shell
$ bin/console
```### Local Installation
To install this gem onto your local machine, type:
```shell
$ bundle exec rake install
```### To Release A New Version
To create a git tag for the new version, push git commits and tags,
and push the new version of the gem to https://rubygems.org, type:```shell
$ bundle exec rake release
```## Contributing
Bug reports and pull requests are welcome at https://github.com/mslinn/jekyll_google_translate.
## License
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).