2

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', 
    'KEY' => 'GERMAN_TRANSLATION_VALUE'
];

But this format is not supported by Phraseapp.

Is there a way to return json or yaml instead?

1 Answer 1

1

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 and acknowledge you have read our privacy policy.

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