Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Translation] [Lokalise] Fix language format on Lokalise Provider #52677

Merged
merged 1 commit into from Nov 24, 2023

Conversation

welcoMattic
Copy link
Member

Q A
Branch? 5.4
Bug fix? yes
New feature? no
Deprecations? no
Issues Fix #...
License MIT

Lokalise has changed their API a little bit, and ISO languages are formatted with a -, which is not wrong. But we use it as locale to load the translation with XliffLoader (and other loaders), and it leads to wrong filename like messages+intl-icu.en-US.xlf.

This PR fixes the issue.

@carsonbot carsonbot added this to the 7.1 milestone Nov 21, 2023
@carsonbot carsonbot changed the title [Translation][Lokalise] Fix language format on Lokalise Provider [Translation] [Lokalise] Fix language format on Lokalise Provider Nov 21, 2023
@welcoMattic welcoMattic changed the base branch from 7.1 to 5.4 November 21, 2023 22:04
@welcoMattic welcoMattic modified the milestones: 7.1, 5.4 Nov 21, 2023
@symfony symfony deleted a comment from carsonbot Nov 21, 2023
@nicolas-grekas
Copy link
Member

Thank you @welcoMattic.

@nicolas-grekas nicolas-grekas merged commit b6adb52 into symfony:5.4 Nov 24, 2023
8 of 11 checks passed
@welcoMattic welcoMattic deleted the fix-lokalise-export branch November 24, 2023 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants