No commit activity in last 3 years
No release in over 3 years
Tags for translating Jekyll templates.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

>= 0.38.0, ~> 0.38
 Project Readme

jekyll-i18n_tags

This Jekyll plugin provides a simple tag for translating templates.

Installation

Add the jekyll-i18n_tags gem to the :jekyll_plugins group in your Gemfile:

group :jekyll_plugins do
  gem 'jekyll-i18n_tags', '~>1'
end

Usage

Put the configuration and translations in your _config.yml:

# Source language is optional. If set, translations to it will not be
# performed.
source_lang: en
translations:
  pl:
    Hello, world!: Witaj, świecie!

In your templates, use the t tag:

{% t Hello, world! %}

For each page which uses the translation tag, you need to set lang variable (you may want to use front matter defaults to faciliate this).

Versioning

This project uses semantic versioning.

License

This software is licensed under the MIT License.