SaswatPadhi / pseudocode.js

Beautiful pseudocode for the Web
https://saswatpadhi.github.io/pseudocode.js
MIT License
224 stars 33 forks source link

I18n for "Algorithm" string in caption #18

Closed josedusol closed 4 years ago

josedusol commented 4 years ago

The "Algorithm" string appearing in caption title is hardcoded in the source.

Could this be made more flexible for other languages?, maybe adding an option to customize the caption prefix. For example in Spanish is "Algoritmo", and in french is "Algorithme".

Good project. Thanks

SaswatPadhi commented 4 years ago

Great idea! Thanks for the suggestion.

I would look into how to best support this for "Algorithm" and other hardcoded strings. If you already have a good idea on how to achieve this, you are most welcome to open a PR.