Add translations to a Package

Permalink
Hi all,

I've just built a block which consist basically of a form and I want to be able to translate some of the strings in that form. I've been searching the forums/documentation and I've found that I cannot just add a languages/ folder to the block, instead I have to build a package that contains the block and then I can add the languages folder with the different translations in it. I've used poedit and I managed to extract all the t() strings and update the translations accordingly.
In order to test this I added
define('LOCALE', 'fr_FR');
in config/site.php but the strings in the block are not translated at all. When I move the the fr_FR/ folder inside mysite/languages/ then it works. Am I missing something? Is this how it supposed to work?

Thanks in advance.