enupal / translate

Translate your website templates and plugins into multiple languages for Craft CMS. Bulk translation with Google Translate or Yandex.
https://enupal.com/craft-plugins/translate
Other
10 stars 2 forks source link

Translation files with custom path #36

Open rauwebieten opened 4 years ago

rauwebieten commented 4 years ago

Description

When custom translations setup, translations do not save. They are properly loaded, but not saved.

Steps to reproduce

I have a custom setup for my translation files (inside storage folder)

    'i18n' => [
        'translations' => [
            'site' => [
                'class' => 'yii\i18n\PhpMessageSource',
                'basePath' => '@storage/translations',
                'sourceLanguage' => 'en',
                'fileMap' => [
                    'site' => 'site.php'
                ],
            ],
        ],
    ]

The plugin loads all translations, but saving does not work. The plugins saves the translations in the default folder (@app/translations)