howoldisit
howoldisit copied to clipboard
Adding support to multi language
Following the same idea of technologies.json
I created a json
file with the strings to replace on the index.template.
Nothing sophisticated but works. I tried the i18n-js
gem, but it's too much for this simple change. The result will be a folder called localized
and inside all folder with the language code, for example Portuguese localized/pt/index.html
In this PR I added Portuguese, French and Spanish.
To add or edit a new language is just update that on languages.json
Off course since English is the main language it will be created on main folder and on the localized.