Skip to content

Inconsistent Translation Behavior with Locale Variants #15251

Open
@saubhagya14

Description

@saubhagya14

Describe the issue

We are experiencing inconsistent behavior in machine translation based on locale variants.

  1. When the source language is English (en) and the target locales are fr and en_US:

    Translation to fr works correctly.
    Translation to en_US does not work as expected.

  2. When the source language is French (fr) and the target locales are fr_FR and en_US:

    Translation to en_US works correctly.
    Translation to fr_FR does not work as expected.

This inconsistency suggests that locale-specific variants (like en_US or fr_FR) are not being handled uniformly. We would appreciate it if the Weblate team could investigate this issue.

I already tried

  • I've read and searched the documentation.
  • I've searched for similar filed issues in this repository.

Steps to reproduce the behavior

When the source language is English (en) and the target locales are fr and en_US:

Translation to fr works correctly.
Translation to en_US does not work as expected.

When the source language is French (fr) and the target locales are fr_FR and en_US:

Translation to en_US works correctly.
Translation to fr_FR does not work as expected.

Expected behavior

No response

Screenshots

No response

Exception traceback

How do you run Weblate?

No response

Weblate versions

No response

Weblate deploy checks

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Waiting for: CommunityNot specified enough, discussion with community is needed.wontfixWill be closed when no feedback arrives.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions