Created
April 15, 2017 13:43
-
-
Save lukas-h/a0a04648259f33c7789d5e92d61d3a88 to your computer and use it in GitHub Desktop.
Jekyll Plugin to translate dates to german - Jekyll Plugin um Daten auf Deutsch zu übersetzen
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Jekyll | |
module DateTranslate | |
def dateTranslate(input) | |
puts 'hey' | |
return input | |
.gsub('January', 'Januar') | |
.gsub('February', 'Februar') | |
.gsub('March', 'März') .gsub('Mar', 'Mär') | |
.gsub('May', 'Mai') | |
.gsub('June', 'Juni') | |
.gsub('July', 'Juli') | |
.gsub('October', 'Oktober') .gsub('Oct', 'Okt') | |
.gsub('December', 'Dezember') .gsub('Dec', 'Dez') | |
end | |
end | |
end | |
Liquid::Template.register_filter(Jekyll::DateTranslate) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment