MutationDigitale / craft3-translate

Craft CMS plugin for static translations in CP
Other
12 stars 7 forks source link

[Question] Getting the translations from the plugin? #48

Closed TomDeSmet closed 1 year ago

TomDeSmet commented 1 year ago

When using this plugin, by parsing all templates, the default translation files get obsolete. However, we need to get the translated content in another plugin/module.

Is there a way we can leverage the actionGetTranslations() controller to request all translations (edited by the client) from your plugin?

TomDeSmet commented 1 year ago

I can just use $sourceMessages = Translate::getInstance()->sourceMessage->getSourceMessagesArrayByCategory("site");