Skip to content

Translate tag picks the wrong language when using multisite #166

@tao

Description

@tao

I have some translated keywords in Laravel Lang files, but when I used ssg:generate after updating to v3 then it randomly generates from other languages...

This happens even when I specify the site in the trans tag

{{ trans:legal.disclaimer site="{locale}" }}

Screenshot 2024-05-23 at 17 23 27

You can see it ends up with a mix of all different languages on this page, so now I have Spanish and Arabic on the same page.

The same is happening with the get_content tag.

It seems most languages end up being generated with Arabic which is alphabetically the first site in our sites list... besides that I don't have any other clues as to what is going on.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions