create-block-multple-blocks-template
create-block-multple-blocks-template copied to clipboard
How to add translations for the blocks?
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.