create-block-multple-blocks-template icon indicating copy to clipboard operation
create-block-multple-blocks-template copied to clipboard

How to add translations for the blocks?

Open RatzeR opened this issue 3 years ago • 0 comments

Hi @ryanwelcher,

I'm using this project since months and it is awesome! Thanks for it! I now tried to add translations for the blocks I created and I am a little bit confused.

I've read a few articles about this topic and when I understand them correctly, translations are added per block? So the file structure has to be:

%plugin%/src/blocks/%block-name%/languages/json-file-generated-from-pot-file.json

instead of

%plugin%/languages/json-file-generated-from-pot-file.json

right?

Maybe this could also be a cool little update for this project, if there is a way to support language file creation by default.

RatzeR avatar Sep 13 '22 15:09 RatzeR