I'm trying to get my Craft translations to work with the translation management tool Phraseapp.

The standard format for translation-files in Craft CMS looks like this:

# de.php

return [ 
    'good_morning' => 'Guten morgen', 

But this format is not supported by Phraseapp.

Is there a way to return json or yaml instead?


We used to use PhraseApp to manage Craft translations, but as of Craft 3, we don't anymore (everything is now on Github).

When we were using them, we wrote a quick PHP script that would take the PHP based translation file format Craft uses, parse them and convert them to a format that PhraseApp could use. Then there was another quick script that would reverse the process when we pulled them down.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.