Libbraille was a Portable Library for Braille Displays which was a free online tool translator. It translated Unicode text to Braille however now it is offline and not available online for users. An alternative for the translator can be,
https://www.brailletranslator.org/

The translator is a simple way to allow one to convert any text to Braille. It can support all contractions up to the grade 2 level.

The procedure is first to enter the text and then choose the language from the options available. You can also check the advanced options available on the web page. 1 or 2 can be chosen for uncontracted and contracted Braille options respectively.