Does translations -> export work for you?



  • Export fails with 'Array to string conversion' exceptions.

    The underlying issue is that there are a few language resource files with empty arrays. For example:
    /resources/lang/en/validation.php
    ...
    'attributes' => [],
    ...

    Empty arrays are not particularly handled with the Laravel array_dot helper function which is used in the translations module. It just sets the value to an empty array, which then fails with the exception above.

    Sure I can fix the problem myself just by commenting or deleting those empty arrays, but the functionality does not work out of the box.


  • admin

    Hello,

    Thanks for noticing the issue, I will look into it asap. :)


  • admin

    This was fixed in the following PR: https://github.com/AsgardCms/Translation/pull/31


Log in to reply